summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-02-08 11:13:36 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-02-08 11:13:36 +0100
commit8f5deb8327301c34642c6f403d0c7997f67de717 (patch)
tree94d0d935a6b4208b2ed16e755b441415279c1988 /dvbdevice.c
parentda3c91f01bab52add46a3de24d20b760dfaf9708 (diff)
downloadvdr-8f5deb8327301c34642c6f403d0c7997f67de717.tar.gz
vdr-8f5deb8327301c34642c6f403d0c7997f67de717.tar.bz2
Preliminary fix for the "Unknown picture type error"
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 01a9a6c6..cd6abbe0 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 1.79 2004/01/25 13:50:21 kls Exp $
+ * $Id: dvbdevice.c 1.80 2004/02/08 11:11:10 kls Exp $
*/
#include "dvbdevice.h"
@@ -751,6 +751,11 @@ bool cDvbDevice::SetChannelDevice(const cChannel *Channel, bool LiveView)
dvbTuner->Set(Channel, DoTune, !EITScanner.UsesDevice(this)); //XXX 1.3: this is an ugly hack - find a cleaner solution//XXX
+ //XXX TODO preliminary fix for the "Unknown picture type" error
+ time_t t0 = time(NULL);
+ while (!dvbTuner->Locked() && time(NULL) - t0 < 5)
+ usleep(100);
+ //XXX
// PID settings:
if (TurnOnLivePIDs) {