flvdemux: Set ACCEPT_TEMPLATE flag on sinkpad
authorEdward Hervey <edward@centricular.com>
Wed, 20 May 2020 08:44:19 +0000 (10:44 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 20 May 2020 08:48:06 +0000 (10:48 +0200)
A demuxer can accept any caps matching its sinkpad template caps

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/596>

gst/flv/gstflvdemux.c

index 5ae117f..7cfe63f 100644 (file)
@@ -3645,7 +3645,7 @@ gst_flv_demux_init (GstFlvDemux * demux)
 {
   demux->sinkpad =
       gst_pad_new_from_static_template (&flv_sink_template, "sink");
-
+  GST_PAD_SET_ACCEPT_TEMPLATE (demux->sinkpad);
   gst_pad_set_event_function (demux->sinkpad,
       GST_DEBUG_FUNCPTR (gst_flv_demux_sink_event));
   gst_pad_set_chain_function (demux->sinkpad,