summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-08-01 19:50:36 +0000
committerphintuka <phintuka>2009-08-01 19:50:36 +0000
commitc62fd5ecf5b51c27a192dbe5d2bf6c2bea47f6c6 (patch)
tree4493b85511514af55643669a5a2ee620370dc154 /device.c
parentef474e91da04926947a62d4144c2ad14f5c5fd21 (diff)
downloadxineliboutput-c62fd5ecf5b51c27a192dbe5d2bf6c2bea47f6c6.tar.gz
xineliboutput-c62fd5ecf5b51c27a192dbe5d2bf6c2bea47f6c6.tar.bz2
Moved double clear check from cXinelibDevice to cXinelibThread
Diffstat (limited to 'device.c')
-rw-r--r--device.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/device.c b/device.c
index a682519e..4a2af909 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.85 2009-07-25 20:40:45 phintuka Exp $
+ * $Id: device.c,v 1.86 2009-08-01 19:50:36 phintuka Exp $
*
*/
@@ -211,7 +211,6 @@ cXinelibDevice::cXinelibDevice()
m_RadioStream = false;
m_AudioCount = 0;
m_FreeBufs = 0;
- m_Cleared = true;
m_h264 = false;
m_VideoSize = (video_size_t*)calloc(1, sizeof(video_size_t));
@@ -787,18 +786,12 @@ void cXinelibDevice::Clear(void)
TsBufferClear();
- if(m_Cleared && m_StreamStart && m_TrickSpeed == -1) {
- //LOGMSG("************ Double Clear ***************");
- } else {
- //LOGMSG("************ FIRST Clear ***************");
- m_Cleared = true;
- m_StreamStart = true;
- m_h264 = false;
- m_FreeBufs = 0;
- TrickSpeed(-1);
- ForEach(m_clients, &cXinelibThread::Clear);
- ForEach(m_clients, &cXinelibThread::SetStillMode, false);
- }
+ m_StreamStart = true;
+ m_h264 = false;
+ m_FreeBufs = 0;
+ TrickSpeed(-1);
+ ForEach(m_clients, &cXinelibThread::Clear);
+ ForEach(m_clients, &cXinelibThread::SetStillMode, false);
}
void cXinelibDevice::Play(void)
@@ -1080,7 +1073,6 @@ int cXinelibDevice::PlayAny(const uchar *buf, int length)
if (DATA_IS_PES(buf))
pes_change_pts((uchar*)buf, length, INT64_C(0));
}
- m_Cleared = false;
m_FreeBufs --;
if(m_local) {