From c75344342c3d337dae730135453a25351fe74167 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 30 Apr 2009 14:18:58 +0200 Subject: 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. --- gst/dvdspu/gstdvdspu.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.1