summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-01-24 07:17:31 +0000
committerphintuka <phintuka>2007-01-24 07:17:31 +0000
commit227fd6a299dc067a625a571995ffa298f6dad1c3 (patch)
treeb1f942fe879dbef95e4cc6e1003b1ce3330e7bac
parenta99630e3e70c37ab5f5f7e25efd3562e7d786533 (diff)
downloadxineliboutput-227fd6a299dc067a625a571995ffa298f6dad1c3.tar.gz
xineliboutput-227fd6a299dc067a625a571995ffa298f6dad1c3.tar.bz2
Avoid busy loop
-rw-r--r--frontend_local.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend_local.c b/frontend_local.c
index acb530b6..3575f4d7 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.16 2007-01-20 17:33:09 phintuka Exp $
+ * $Id: frontend_local.c,v 1.17 2007-01-24 07:17:31 phintuka Exp $
*
*/
@@ -93,8 +93,8 @@ int cXinelibLocal::Play_PES(const uchar *data, int len)
{
TRACEF("cXinelibLocal::Play_PES");
LOCK_FE;
- if(fe && m_bReady) {
- int done = fe->xine_queue_pes_packet(fe, (char*)data, len);
+ if(fe) {
+ int done = m_bReady ? fe->xine_queue_pes_packet(fe, (char*)data, len) : 0;
if(done>0) {
Lock();
m_StreamPos += done;