summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-07-05 11:26:56 +0000
committerphintuka <phintuka>2009-07-05 11:26:56 +0000
commit56814d94c427db5d80c6c69c17975d0e37707713 (patch)
tree45251668116b229f6fb2efbffd5fc2c6ae239581
parent64f65e8532fd36aa8e0367e99fac367557419d62 (diff)
downloadxineliboutput-56814d94c427db5d80c6c69c17975d0e37707713.tar.gz
xineliboutput-56814d94c427db5d80c6c69c17975d0e37707713.tar.bz2
vdr_plugin_read_block(): do not deliver data while slave stream is playing
-rw-r--r--xine_input_vdr.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c
index de9b09fa..b893f618 100644
--- a/xine_input_vdr.c
+++ b/xine_input_vdr.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_input_vdr.c,v 1.255 2009-07-05 11:24:14 phintuka Exp $
+ * $Id: xine_input_vdr.c,v 1.256 2009-07-05 11:26:56 phintuka Exp $
*
*/
@@ -4284,6 +4284,14 @@ static buf_element_t *vdr_plugin_read_block (input_plugin_t *this_gen,
TRACE("vdr_plugin_read_block");
+ if (this->slave_stream) {
+ xine_usec_sleep(50*1000);
+ if (this->slave_stream) {
+ errno = EAGAIN;
+ return NULL;
+ }
+ }
+
do {
/* check for disconnection/termination */