diff options
author | phintuka <phintuka> | 2010-12-06 12:45:42 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-12-06 12:45:42 +0000 |
commit | d18750ed3958a1d3706c1ad7b239fb361b101afc (patch) | |
tree | 1c89d67520f4749ed115e70dfd044923465272b6 | |
parent | 3a3a79dbce3864809793470793acc7e4e039fc15 (diff) | |
download | xineliboutput-d18750ed3958a1d3706c1ad7b239fb361b101afc.tar.gz xineliboutput-d18750ed3958a1d3706c1ad7b239fb361b101afc.tar.bz2 |
Restart background video if it finishes before the current song.
This makes sense for short animation loops.
(Thanks to Helmar Gerloni)
-rw-r--r-- | xine_input_vdr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index e2183e1b..275f2ab6 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.327 2010-11-16 15:27:26 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.328 2010-12-06 12:45:42 phintuka Exp $ * */ @@ -134,7 +134,7 @@ typedef struct { # include <linux/unistd.h> /* syscall(__NR_gettid) */ #endif -static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.327 2010-11-16 15:27:26 phintuka Exp $"; +static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.328 2010-12-06 12:45:42 phintuka Exp $"; static const char log_module_input_vdr[] = "[input_vdr] "; #define LOG_MODULENAME log_module_input_vdr #define SysLogLevel iSysLogLevel @@ -3794,6 +3794,9 @@ static void vdr_event_cb (void *user_data, const xine_event_t *event) if (this->funcs.fe_control) this->funcs.fe_control(this->funcs.fe_handle, "ENDOFSTREAM\r\n"); } + } else if(event->stream == this->bg_stream.stream) { + LOGMSG("XINE_EVENT_UI_PLAYBACK_FINISHED (background stream)"); + xine_play(this->bg_stream.stream, 0, 0); } pthread_mutex_unlock(&this->lock); |