summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-06-04 09:49:25 +0000
committerphintuka <phintuka>2009-06-04 09:49:25 +0000
commit852aea2652081510610e6ba972e4ca706aa78137 (patch)
tree897e65f4d924719d15c0898553408e33d9112ce7
parent555ea5e04290dae5f318c96b877efa5dafd7d596 (diff)
downloadxineliboutput-852aea2652081510610e6ba972e4ca706aa78137.tar.gz
xineliboutput-852aea2652081510610e6ba972e4ca706aa78137.tar.bz2
Reset PAT/PMT parser when switching channel.
(Thanks to jlac) https://sourceforge.net/forum/forum.php?thread_id=3277603&forum_id=540656
-rw-r--r--device.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/device.c b/device.c
index 889cf2fb..1f9fdf2a 100644
--- a/device.c
+++ b/device.c
@@ -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.81 2009-05-27 08:20:58 phintuka Exp $
+ * $Id: device.c,v 1.82 2009-06-04 09:49:25 phintuka Exp $
*
*/
@@ -580,6 +580,10 @@ void cXinelibDevice::SetTvMode(cChannel *Channel)
TRACEF("cXinelibDevice::SetTvMode");
TRACK_TIME(250);
+#if VDRVERSNUM >= 10701
+ m_PatPmtParser.Reset();
+#endif
+
m_RadioStream = false;
if (Channel && !Channel->Vpid() && (Channel->Apid(0) || Channel->Apid(1)))
m_RadioStream = true;