summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-02-27 16:32:24 +0000
committerphintuka <phintuka>2010-02-27 16:32:24 +0000
commit2ae40acb4f7c52c44be0089d207009b8347d7d51 (patch)
tree64dadced562584ceb399c6b72aa8770e7b76cc0f
parent6e87778b7160368cc4fbd68260552f88b378bccc (diff)
downloadxineliboutput-2ae40acb4f7c52c44be0089d207009b8347d7d51.tar.gz
xineliboutput-2ae40acb4f7c52c44be0089d207009b8347d7d51.tar.bz2
Moved TsBufferFlush() in DeviceStillPicture() to right place
-rw-r--r--device.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/device.c b/device.c
index 922a5285..aad81174 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.97 2010-02-15 06:39:25 phintuka Exp $
+ * $Id: device.c,v 1.98 2010-02-27 16:32:24 phintuka Exp $
*
*/
@@ -1382,6 +1382,7 @@ void cXinelibDevice::StillPicture(const uchar *Data, int Length)
else
cCondWait::SleepMs(5);
}
+ TsBufferFlush();
#endif
} else {
ForEach(m_clients, &cXinelibThread::Play_Mpeg2_ES,
@@ -1389,13 +1390,13 @@ void cXinelibDevice::StillPicture(const uchar *Data, int Length)
&mand<bool>, true);
}
+ TsBufferFlush();
+
// creates empty video PES with pseudo-pts
ForEach(m_clients, &cXinelibThread::Play_Mpeg2_ES,
Data, 0, VIDEO_STREAM, isH264,
&mand<bool>, true);
- TsBufferFlush();
-
ForEach(m_clients, &cXinelibThread::Flush, 60, &mand<bool>, true);
m_TrickSpeed = 0;