diff options
author | phintuka <phintuka> | 2010-03-13 12:06:25 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-03-13 12:06:25 +0000 |
commit | 89ab35a9cc4175688680044e2ef123707a5880c1 (patch) | |
tree | edf654cf586e24ec23f60b125111a8e39f26d4fe | |
parent | 07a3d0ab0395f27afa094f8e4431553089b5bba8 (diff) | |
download | xineliboutput-89ab35a9cc4175688680044e2ef123707a5880c1.tar.gz xineliboutput-89ab35a9cc4175688680044e2ef123707a5880c1.tar.bz2 |
Play(): Only VDR stream is counted for stream position
-rw-r--r-- | frontend.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend.c,v 1.82 2010-03-13 12:04:29 phintuka Exp $ + * $Id: frontend.c,v 1.83 2010-03-13 12:06:25 phintuka Exp $ * */ @@ -399,11 +399,12 @@ int cXinelibThread::Poll(cPoller& Poller, int TimeoutMs) int cXinelibThread::Play(const uchar *data, int len, eStreamId StreamId) { - Lock(); - m_StreamPos += len; - m_Frames++; - /*m_bEndOfStreamReached = false;*/ - Unlock(); + if (StreamId == sidVdr) { + Lock(); + m_StreamPos += len; + m_Frames++; + Unlock(); + } return len; } |