rtpbasepayload: assume input caps are accepted if subclass has no set_caps vfunc

Not that anyone should ascribe too much meaning to these return
values in the age of sticky caps.
This commit is contained in:
Tim-Philipp Müller 2012-09-06 17:47:01 +01:00
parent 3dd7e1f3c4
commit 3d006f6d2a

View file

@ -358,6 +358,8 @@ gst_rtp_base_payload_sink_event_default (GstRTPBasePayload * rtpbasepayload,
rtpbasepayload_class = GST_RTP_BASE_PAYLOAD_GET_CLASS (rtpbasepayload);
if (rtpbasepayload_class->set_caps)
res = rtpbasepayload_class->set_caps (rtpbasepayload, caps);
else
res = TRUE;
gst_event_unref (event);
break;