From 40dad7529fecc8e2c90f4b0c91ccbea7634d778b Mon Sep 17 00:00:00 2001 From: phintuka Date: Sun, 3 May 2009 20:11:39 +0000 Subject: Return 0 if input plugin queue is full --- frontend_local.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend_local.c b/frontend_local.c index ead73f46..354e9b25 100644 --- a/frontend_local.c +++ b/frontend_local.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend_local.c,v 1.38 2009-05-03 20:10:35 phintuka Exp $ + * $Id: frontend_local.c,v 1.39 2009-05-03 20:11:39 phintuka Exp $ * */ @@ -128,12 +128,12 @@ int cXinelibLocal::Play_PES(const uchar *data, int len) LOCK_FE; if(fe && !m_bStopThread) { int done = fe->xine_queue_pes_packet(fe, (char*)data, len); - if(done>0) { + if (done >= 0) { Lock(); m_StreamPos += done; Unlock(); + return done; } - return done; } } -- cgit v1.2.3