From 232ef9cc391efb52ea07ae7a84d1acca6e7124a6 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Thu, 26 Jan 2012 16:32:17 -0500 Subject: [PATCH] dvdspu should forward video caps event --- gst/dvdspu/gstdvdspu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c index ea348fe22e..0447832706 100644 --- a/gst/dvdspu/gstdvdspu.c +++ b/gst/dvdspu/gstdvdspu.c @@ -392,7 +392,10 @@ gst_dvd_spu_video_event (GstPad * pad, GstObject * parent, GstEvent * event) gst_event_parse_caps (event, &caps); res = gst_dvd_spu_video_set_caps (pad, caps); - gst_event_unref (event); + if (res) + res = gst_pad_push_event (dvdspu->srcpad, event); + else + gst_event_unref (event); break; } case GST_EVENT_CUSTOM_DOWNSTREAM: