summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-04-30 14:18:58 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-04-30 14:18:58 +0200
commitf38cb76b5f2db479ab488bc1de2b53b5700f984a (patch)
treedbcbec3c815c1630b0e3da21c1678a009b1a3872
parent1ae52725d92a3781dd605526d5f8e75bdebe337d (diff)
downloadgst-plugins-bad-f38cb76b5f2db479ab488bc1de2b53b5700f984a.tar.gz
gst-plugins-bad-f38cb76b5f2db479ab488bc1de2b53b5700f984a.tar.bz2
gst-plugins-bad-f38cb76b5f2db479ab488bc1de2b53b5700f984a.zip
dvdspu: don't EOS when the subtitle got EOS
Don't forward the EOS on the subtitle pad as the video might still be running.
-rw-r--r--gst/dvdspu/gstdvdspu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c
index 6ad8ed06..3b4c1a0c 100644
--- a/gst/dvdspu/gstdvdspu.c
+++ b/gst/dvdspu/gstdvdspu.c
@@ -1366,6 +1366,12 @@ gst_dvd_spu_subpic_event (GstPad * pad, GstEvent * event)
/* We don't forward flushes on the spu pad */
gst_event_unref (event);
goto done;
+ case GST_EVENT_EOS:
+ /* drop EOS on the subtitle pad, it means there are no more subtitles,
+ * video might still continue, though */
+ gst_event_unref (event);
+ goto done;
+ break;
default:
res = gst_pad_event_default (pad, event);
break;