diff options
author | phintuka <phintuka> | 2007-10-15 00:15:07 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-10-15 00:15:07 +0000 |
commit | 1c6d2698917f31188b8fafc480039713b9cc34b3 (patch) | |
tree | 95bbe08da16f7d0a33ae760b6436542877fb02af /device.c | |
parent | cd8d4d690546804eae1429866fe6e0df453a24e9 (diff) | |
download | xineliboutput-1c6d2698917f31188b8fafc480039713b9cc34b3.tar.gz xineliboutput-1c6d2698917f31188b8fafc480039713b9cc34b3.tar.bz2 |
Remove vdr-1.3.x compability code (it won't work anyway)
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 57 |
1 files changed, 1 insertions, 56 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.c,v 1.44 2007-10-14 18:32:00 phintuka Exp $ + * $Id: device.c,v 1.45 2007-10-15 00:15:07 phintuka Exp $ * */ @@ -74,12 +74,8 @@ class cXinelibStatusMonitor : public cStatus protected: virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber); -#if VDRVERSNUM < 10338 - virtual void Replaying(const cControl *Control, const char *Name); -#else virtual void Replaying(const cControl *Control, const char *Name, const char *FileName, bool On); -#endif cXinelibDevice& m_Device; int m_cardIndex; @@ -136,18 +132,6 @@ void cXinelibStatusMonitor::ChannelSwitch(const cDevice *Device, } } -#if VDRVERSNUM < 10338 -void cXinelibStatusMonitor::Replaying(const cControl *Control, - const char *Name) -{ - TRACEF("cXinelibStatusMonitor::Replaying"); - - if (Name != NULL) { - TRACE("cXinelibStatusMonitor: Replaying " << Name); - m_Device.SetReplayMode(); - } -} -#else void cXinelibStatusMonitor::Replaying(const cControl *Control, const char *Name, const char *FileName, bool On) @@ -159,7 +143,6 @@ void cXinelibStatusMonitor::Replaying(const cControl *Control, m_Device.SetReplayMode(); } } -#endif //----------------------------- device ---------------------------------------- @@ -369,10 +352,8 @@ void cXinelibDevice::ForcePrimaryDeviceImpl(bool On) LOGMSG("Forcing primary device, original index = %d", m_OriginalPrimaryDevice); if(cOsd::IsOpen()) { LOGMSG("Forcing primary device, old OSD still open !"); -#if VDRVERSNUM >= 10400 xc.main_menu_mode = CloseOsd; cRemote::CallPlugin("xineliboutput"); -#endif } SetPrimaryDevice(DeviceNumber() + 1); } @@ -389,10 +370,8 @@ void cXinelibDevice::ForcePrimaryDeviceImpl(bool On) cControl::Shutdown(); if(cOsd::IsOpen()) { LOGMSG("Restoring primary device, xineliboutput OSD still open !"); -#if VDRVERSNUM >= 10400 xc.main_menu_mode = CloseOsd; /* will be executed in future by vdr main thread */ cRemote::CallPlugin("xineliboutput"); -#endif } cChannel *channel = Channels.GetByNumber(CurrentChannel()); cDevice::SetPrimaryDevice(m_OriginalPrimaryDevice); @@ -1499,38 +1478,6 @@ cSpuDecoder *cXinelibDevice::GetSpuDecoder(void) // Image Grabbing // -#if VDRVERSNUM < 10338 - -bool cXinelibDevice::GrabImage(const char *FileName, bool Jpeg, - int Quality, int SizeX, int SizeY) -{ - uchar *Data = NULL; - int Size = 0; - TRACEF("cXinelibDevice::GrabImage"); - - if(m_local) - Data = m_local->GrabImage(Size, Jpeg, Quality, SizeX, SizeY); - if(!Data && m_server) - Data = m_local->GrabImage(Size, Jpeg, Quality, SizeX, SizeY); - - if(Data) { - FILE *fp = fopen(FileName, "wb"); - if(fp) { - fwrite(Data, Size, 1, fp); - fclose(fp); - free(Data); - return true; - } - LOGERR("Grab: Can't open %s", FileName); - free(Data); - } else { - LOGMSG("Grab to %s failed", FileName); - } - return false; -} - -#else - uchar *cXinelibDevice::GrabImage(int &Size, bool Jpeg, int Quality, int SizeX, int SizeY) { @@ -1544,8 +1491,6 @@ uchar *cXinelibDevice::GrabImage(int &Size, bool Jpeg, return NULL; } -#endif - // // DVD SPU support in VDR recordings |