summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/device.c b/device.c
index 574900db..223b2420 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.105 2010-03-15 12:40:30 phintuka Exp $
+ * $Id: device.c,v 1.106 2010-05-19 12:56:59 phintuka Exp $
*
*/
@@ -1219,10 +1219,12 @@ int cXinelibDevice::PlayTsAudio(const uchar *Data, int Length)
int cXinelibDevice::PlayTsVideo(const uchar *Data, int Length)
{
+ if (ts_PID(Data) == PatPmtParser()->Vpid()) {
+
if (!AcceptVideoPacket(Data, Length))
return Length;
- if (m_StreamStart && ts_PID(Data) == PatPmtParser()->Vpid()) {
+ if (m_StreamStart) {
if (!m_tssVideoSize)
m_tssVideoSize = ts_state_init(4096);
@@ -1237,6 +1239,7 @@ int cXinelibDevice::PlayTsVideo(const uchar *Data, int Length)
m_tssVideoSize = NULL;
}
}
+ }
return PlayTsAny(Data, Length);
}