diff options
author | Johns <johns98@gmx.net> | 2012-02-17 15:10:24 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-17 15:10:24 +0100 |
commit | 5c9b85b69b445dfaf7b200efdf1b63d7e6577145 (patch) | |
tree | 885ba1e33b84996fd09900ad78460763f2969704 | |
parent | 09cfab3856fa0104f0375b32a67e6b5fbea1c094 (diff) | |
download | vdr-plugin-softhddevice-5c9b85b69b445dfaf7b200efdf1b63d7e6577145.tar.gz vdr-plugin-softhddevice-5c9b85b69b445dfaf7b200efdf1b63d7e6577145.tar.bz2 |
Use SetVideoFormat to call SetVideoDisplayFormat.
-rw-r--r-- | softhddevice.cpp | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index 6002d6e..454ab30 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -686,6 +686,7 @@ class cSoftHdDevice:public cDevice virtual bool Flush(int = 0); virtual int64_t GetSTC(void); virtual void SetVideoDisplayFormat(eVideoDisplayFormat); + virtual void SetVideoFormat(bool); virtual void GetVideoSize(int &, int &, double &); virtual void GetOsdSize(int &, int &, double &); virtual int PlayVideo(const uchar *, int); @@ -724,7 +725,6 @@ cSoftHdDevice::cSoftHdDevice(void) #if 0 spuDecoder = NULL; #endif - SetVideoDisplayFormat(eVideoDisplayFormat(Setup.VideoDisplayFormat)); } cSoftHdDevice::~cSoftHdDevice(void) @@ -920,8 +920,6 @@ bool cSoftHdDevice::Flush(int timeout_ms) /** ** Sets the video display format to the given one (only useful if this ** device has an MPEG decoder). -** -** @note this function isn't called on the initial channel */ void cSoftHdDevice::SetVideoDisplayFormat( eVideoDisplayFormat video_display_format) @@ -942,6 +940,23 @@ void cSoftHdDevice::SetVideoDisplayFormat( } /** +** Sets the output video format to either 16:9 or 4:3 (only useful +** if this device has an MPEG decoder). +** +** Should call SetVideoDisplayFormat. +** +** @param video_format16_9 flag true 16:9. +*/ +void cSoftHdDevice::SetVideoFormat(bool video_format16_9) +{ + dsyslog("[softhddev]%s: %d\n", __FUNCTION__, video_format16_9); + + // FIXME: 4:3 / 16:9 video format not supported. + + SetVideoDisplayFormat(eVideoDisplayFormat(Setup.VideoDisplayFormat)); +} + +/** ** Returns the width, height and video_aspect ratio of the currently ** displayed video material. ** |