summaryrefslogtreecommitdiff
authorWim Taymans <wim.taymans@collabora.co.uk>2009-04-30 12:18:58 (GMT)
committer Wim Taymans <wim.taymans@collabora.co.uk>2009-04-30 12:18:58 (GMT)
commitf38cb76b5f2db479ab488bc1de2b53b5700f984a (patch) (side-by-side diff)
treedbcbec3c815c1630b0e3da21c1678a009b1a3872
parent1ae52725d92a3781dd605526d5f8e75bdebe337d (diff)
downloadgst-plugins-bad-f38cb76b5f2db479ab488bc1de2b53b5700f984a.zip
gst-plugins-bad-f38cb76b5f2db479ab488bc1de2b53b5700f984a.tar.gz
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.
Diffstat (more/less context) (ignore whitespace changes)
-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 6ad8ed0..3b4c1a0 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;