fix build raspi

Origin commit data
------------------
Branch: master
Commit: bb185c31b5
Author: max_10 <max_10@gmx.de>
Date: 2023-03-07 (Tue, 07 Mar 2023)

Origin message was:
------------------
- fix build raspi

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2023-03-07 19:19:24 +01:00
committed by vanhofen
parent dcef0ade84
commit 4bf144ff5b
4 changed files with 19 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ class cAudio
int mixer_fd; /* if we are using the OSS mixer */
int mixer_num; /* oss mixer to use, if any */
AUDIO_FORMAT StreamType;
int StreamType;
AUDIO_SYNC_MODE SyncMode;
bool started;
bool thread_started;
@@ -84,7 +84,8 @@ class cAudio
int Start(void);
int Stop(void);
bool Pause(bool Pcm = true);
void SetStreamType(AUDIO_FORMAT type);
void SetStreamType(int bypass);
int GetStreamType(void) { return StreamType; }
void SetSyncMode(AVSYNC_TYPE Mode);
/* select channels */

View File

@@ -78,6 +78,18 @@ int cVideo::setBlank(int)
return 1;
}
int cVideo::GetVideoSystem()
{
int current_video_system = VIDEO_STD_1080I50;
if (dec_w < 720)
current_video_system = VIDEO_STD_PAL;
else if (dec_w > 720 && dec_w <= 1280)
current_video_system = VIDEO_STD_720P50;
return current_video_system;
}
int cVideo::SetVideoSystem(int system, bool)
{
int h;

View File

@@ -180,6 +180,10 @@ class cVideo
int getBlank(void);
int setBlank(int enable);
/* set video_system */
int SetVideoSystem(int video_system, bool remember = true);
int GetVideoSystem();
/* change video play state. Parameters are all unused. */
int Start(void *PcrChannel = NULL, unsigned short PcrPid = 0, unsigned short VideoPid = 0, void *x = NULL);
int Stop(bool blank = true);