summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-03-13 12:06:25 +0000
committerphintuka <phintuka>2010-03-13 12:06:25 +0000
commit89ab35a9cc4175688680044e2ef123707a5880c1 (patch)
treeedf654cf586e24ec23f60b125111a8e39f26d4fe
parent07a3d0ab0395f27afa094f8e4431553089b5bba8 (diff)
downloadxineliboutput-89ab35a9cc4175688680044e2ef123707a5880c1.tar.gz
xineliboutput-89ab35a9cc4175688680044e2ef123707a5880c1.tar.bz2
Play(): Only VDR stream is counted for stream position
-rw-r--r--frontend.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/frontend.c b/frontend.c
index b8bce3e9..e7b3ad02 100644
--- a/frontend.c
+++ b/frontend.c
@@ -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;
}