diff options
author | schmirl <schmirl> | 2007-04-24 10:43:40 +0000 |
---|---|---|
committer | schmirl <schmirl> | 2007-04-24 10:43:40 +0000 |
commit | d5a38b3213e138b6e74d724198619ab5138242ff (patch) | |
tree | 044abf65357c36b8a782b2f5f3ee1cbba043ec4f /client/device.h | |
parent | 0553fce43c696295bd4b291f58397497b59f965b (diff) | |
download | vdr-plugin-streamdev-d5a38b3213e138b6e74d724198619ab5138242ff.tar.gz vdr-plugin-streamdev-d5a38b3213e138b6e74d724198619ab5138242ff.tar.bz2 |
client_device-vdr-1.5.1-fixes.patch by Petri Hintukainen (#219)
- VDR 1.5.0 calls some device members in different order and
streamdev can't currently handle this.
- do not trust in OpenDvr/CloseDvr, instead keep count of active PIDs,
open data connection when it is needed and close it only when there
are no active PIDs
(closing data connection unsubscribes all pids at server end)
- some sanity checks on server side
Modified Files:
client/device.c client/device.h server/connectionVTP.c
Diffstat (limited to 'client/device.h')
-rw-r--r-- | client/device.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/device.h b/client/device.h index 3ef146f..525c1d4 100644 --- a/client/device.h +++ b/client/device.h @@ -1,5 +1,5 @@ /* - * $Id: device.h,v 1.4 2007/04/23 11:42:16 schmirl Exp $ + * $Id: device.h,v 1.5 2007/04/24 10:43:40 schmirl Exp $ */ #ifndef VDR_STREAMDEV_DEVICE_H @@ -25,9 +25,14 @@ private: #if VDRVERSNUM >= 10307 cStreamdevFilters *m_Filters; #endif + int m_Pids; + bool m_DvrClosed; static cStreamdevDevice *m_Device; + bool OpenDvrInt(void); + void CloseDvrInt(void); + protected: virtual bool SetChannelDevice(const cChannel *Channel, bool LiveView); virtual bool HasLock(int TimeoutMs) |