From c1b39c523d297389e01addcf7f12b756a3038ad8 Mon Sep 17 00:00:00 2001
From: Klaus Schmidinger <vdr@tvdr.de>
Date: Sat, 18 Dec 2004 13:17:10 +0100
Subject: Fixed setting 'synced' in cRemux when recording radio channels

---
 CONTRIBUTORS | 3 +++
 HISTORY      | 2 ++
 remux.c      | 4 +++-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 7d3e04db..d4e57073 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1183,3 +1183,6 @@ Darren Salt <linux@youmustbejoking.demon.co.uk>
 
 Sean Carlos <seanc@libero.it>
  for translating OSD texts to the Italian language
+
+Laurence Abbott <laz@club-burniston.co.uk>
+ for fixing setting 'synced' in cRemux when recording radio channels
diff --git a/HISTORY b/HISTORY
index 37b34542..03086622 100644
--- a/HISTORY
+++ b/HISTORY
@@ -3196,3 +3196,5 @@ Video Disk Recorder Revision History
 - Escaped the '-' and '�' characters in the man pages (thanks to Darren Salt for
   pointing this out).
 - Completed the Italian OSD texts (thanks to Sean Carlos).
+- Fixed setting 'synced' in cRemux when recording radio channels (thanks to
+  Laurence Abbott).
diff --git a/remux.c b/remux.c
index b9c04af3..554359c5 100644
--- a/remux.c
+++ b/remux.c
@@ -8,7 +8,7 @@
  * the Linux DVB driver's 'tuxplayer' example and were rewritten to suit
  * VDR's needs.
  *
- * $Id: remux.c 1.22 2004/11/16 16:49:03 kls Exp $
+ * $Id: remux.c 1.23 2004/12/18 13:15:02 kls Exp $
  */
 
 #include "remux.h"
@@ -541,6 +541,8 @@ uchar *cRemux::Get(int &Count, uchar *PictureType)
      // XXX actually '0' should be enough, but '1' must be used with encrypted channels (driver bug?)
      // XXX also allowing 0x1FFF to not break Michael Paar's original patch,
      // XXX but it would probably be best to only use '0'
+     // Force syncing of radio channels to avoid "no useful data" error
+     synced = true;
      if (PictureType)
         *PictureType = I_FRAME;
      return resultBuffer->Get(Count);
-- 
cgit v1.2.3