diff options
author | phintuka <phintuka> | 2009-02-08 08:13:15 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-02-08 08:13:15 +0000 |
commit | f9a6132bd581cb84cd542eb49083aa875f9d3871 (patch) | |
tree | 09da7c213388dc8a3ac27d0f4c47b1266207ee86 | |
parent | 38e4bf10475f960d5dd9212c15f4985253d9e00b (diff) | |
download | xineliboutput-f9a6132bd581cb84cd542eb49083aa875f9d3871.tar.gz xineliboutput-f9a6132bd581cb84cd542eb49083aa875f9d3871.tar.bz2 |
read_block():
Do disconnect detection, demux_action_pending check and scr tuning inside
main loop (with H.264 or MPEG-TS loop does not return very often)
-rw-r--r-- | xine_input_vdr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 929ae956..7dc42343 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.221 2009-02-07 19:01:58 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.222 2009-02-08 08:13:15 phintuka Exp $ * */ @@ -5297,6 +5297,8 @@ static buf_element_t *vdr_plugin_read_block (input_plugin_t *this_gen, TRACE("vdr_plugin_read_block"); + do { + /* check for disconnection/termination */ if(!this->funcs.push_input_write /* reading from socket */ && !this->control_running) { @@ -5319,8 +5321,6 @@ static buf_element_t *vdr_plugin_read_block (input_plugin_t *this_gen, /* adjust SCR speed */ need_pause = adjust_scr_speed(this); - do { - /* get next buffer */ buf = fifo_buffer_try_get(this->block_buffer); if(!buf) { |