diff options
| author | phintuka <phintuka> | 2009-05-03 20:11:39 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2009-05-03 20:11:39 +0000 |
| commit | 40dad7529fecc8e2c90f4b0c91ccbea7634d778b (patch) | |
| tree | 707803dbd4b347e939cf6c7b83b471bdead629a8 | |
| parent | eb72a8be8126855a77cb744325ec1fb20298491e (diff) | |
| download | xineliboutput-40dad7529fecc8e2c90f4b0c91ccbea7634d778b.tar.gz xineliboutput-40dad7529fecc8e2c90f4b0c91ccbea7634d778b.tar.bz2 | |
Return 0 if input plugin queue is full
| -rw-r--r-- | frontend_local.c | 6 |
1 files 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; } } |
