From d18750ed3958a1d3706c1ad7b239fb361b101afc Mon Sep 17 00:00:00 2001 From: phintuka Date: Mon, 6 Dec 2010 12:45:42 +0000 Subject: Restart background video if it finishes before the current song. This makes sense for short animation loops. (Thanks to Helmar Gerloni) --- xine_input_vdr.c | 7 +++++-- 1 file 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 /* 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); -- cgit v1.2.3