diff options
author | schmirl <schmirl> | 2007-01-15 12:00:19 +0000 |
---|---|---|
committer | schmirl <schmirl> | 2007-01-15 12:00:19 +0000 |
commit | 335660b62c8a11f377c10f35c704c89e601fcd2b (patch) | |
tree | 090220330fc729cff5bb252d2015ffdc16ba1449 /server/connection.c | |
parent | 970bf59cc2c1238f2f3d772ec825369f58c8d5ed (diff) | |
download | vdr-plugin-streamdev-335660b62c8a11f377c10f35c704c89e601fcd2b.tar.gz vdr-plugin-streamdev-335660b62c8a11f377c10f35c704c89e601fcd2b.tar.bz2 |
API changes of VDR 1.5.0 (#219)
Modified Files:
server/connection.c server/livestreamer.c
server/livestreamer.h
Diffstat (limited to 'server/connection.c')
-rw-r--r-- | server/connection.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/connection.c b/server/connection.c index 20d1be1..dff1945 100644 --- a/server/connection.c +++ b/server/connection.c @@ -1,5 +1,5 @@ /* - * $Id: connection.c,v 1.7 2006/09/14 10:38:22 schmirl Exp $ + * $Id: connection.c,v 1.8 2007/01/15 12:00:19 schmirl Exp $ */ #include "server/connection.h" @@ -132,7 +132,11 @@ cDevice *cServerConnection::GetDevice(const cChannel *Channel, int Priority) Dprintf(" * GetDevice(const cChannel*, int)\n"); Dprintf(" * -------------------------------\n"); +#if VDRVERSNUM < 10500 device = cDevice::GetDevice(Channel, Priority); +#else + device = cDevice::GetDevice(Channel, Priority, false); +#endif Dprintf(" * Found following device: %p (%d)\n", device, device ? device->CardIndex() + 1 : 0); @@ -150,7 +154,11 @@ cDevice *cServerConnection::GetDevice(const cChannel *Channel, int Priority) const cChannel *current = Channels.GetByNumber(cDevice::CurrentChannel()); isyslog("streamdev-server: Detaching current receiver"); Detach(); +#if VDRVERSNUM < 10500 device = cDevice::GetDevice(Channel, Priority); +#else + device = cDevice::GetDevice(Channel, Priority, false); +#endif Attach(); Dprintf(" * Found following device: %p (%d)\n", device, device ? device->CardIndex() + 1 : 0); |