summaryrefslogtreecommitdiff
path: root/xine_input_vdr.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-08-16 21:46:34 +0000
committerphintuka <phintuka>2006-08-16 21:46:34 +0000
commit5337e0ed5d0ebbe73e8df9fbff8e7b258cf42199 (patch)
tree4f6777015c9e375e026f15088f2957156ea317d6 /xine_input_vdr.c
parent7ba2ea4df741eb7da35bbe28f9a7d4d912dc22ec (diff)
downloadxineliboutput-5337e0ed5d0ebbe73e8df9fbff8e7b258cf42199.tar.gz
xineliboutput-5337e0ed5d0ebbe73e8df9fbff8e7b258cf42199.tar.bz2
Improved end of stream signalling
Some extra checks to catch null pointers and empty strings
Diffstat (limited to 'xine_input_vdr.c')
-rw-r--r--xine_input_vdr.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c
index 004e0942..824a701f 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.24 2006-08-16 17:53:05 phintuka Exp $
+ * $Id: xine_input_vdr.c,v 1.25 2006-08-16 21:46:34 phintuka Exp $
*
*/
@@ -3116,19 +3116,22 @@ static void vdr_event_cb (void *user_data, const xine_event_t *event)
if(this->fd_control >= 0) {
write_control(this, "ENDOFSTREAM\r\n");
} else {
+ if(this->funcs.fe_control)
+ this->funcs.fe_control(this->funcs.fe_handle, "ENDOFSTREAM\r\n");
+#if 0
if(!this->loop_play) {
/* forward to vdr-fe (listening only VDR stream events) */
xine_event_t event;
event.data_length = 0;
event.type = XINE_EVENT_UI_PLAYBACK_FINISHED;
xine_event_send (this->stream, &event);
-LOGMSG("No loop play, playback of slave stream finished");
} else {
-#if 0
+# if 0
xine_usec_sleep(500*1000);
xine_play(this->slave_stream, 0, 0);
-#endif
+# endif
}
+#endif
}
}
break;