From 2ae40acb4f7c52c44be0089d207009b8347d7d51 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sat, 27 Feb 2010 16:32:24 +0000 Subject: Moved TsBufferFlush() in DeviceStillPicture() to right place --- device.c | 7 ++++--- 1 file 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, true); } + TsBufferFlush(); + // creates empty video PES with pseudo-pts ForEach(m_clients, &cXinelibThread::Play_Mpeg2_ES, Data, 0, VIDEO_STREAM, isH264, &mand, true); - TsBufferFlush(); - ForEach(m_clients, &cXinelibThread::Flush, 60, &mand, true); m_TrickSpeed = 0; -- cgit v1.2.3