mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
rtpptdemux: do no assume sink caps are non NULL
This commit is contained in:
parent
c8f442deb0
commit
359b0a86f1
1 changed files with 16 additions and 13 deletions
|
@ -325,6 +325,8 @@ gst_rtp_pt_demux_get_caps (GstRtpPtDemux * rtpdemux, guint pt)
|
|||
g_value_unset (&ret);
|
||||
|
||||
sink_caps = gst_pad_get_current_caps (rtpdemux->sink);
|
||||
|
||||
if (sink_caps) {
|
||||
if (caps == NULL) {
|
||||
caps = gst_caps_ref (sink_caps);
|
||||
} else {
|
||||
|
@ -341,6 +343,7 @@ gst_rtp_pt_demux_get_caps (GstRtpPtDemux * rtpdemux, guint pt)
|
|||
}
|
||||
|
||||
gst_caps_unref (sink_caps);
|
||||
}
|
||||
|
||||
GST_DEBUG ("pt %d, got caps %" GST_PTR_FORMAT, pt, caps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue