mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rtpbin: Don't leak caps
This commit is contained in:
parent
6be8225fde
commit
2f47105129
1 changed files with 3 additions and 1 deletions
|
@ -2813,8 +2813,10 @@ caps_changed (GstPad * pad, GParamSpec * pspec, GstRtpBinSession * session)
|
|||
s = gst_caps_get_structure (caps, 0);
|
||||
|
||||
/* get payload, finish when it's not there */
|
||||
if (!gst_structure_get_int (s, "payload", &payload))
|
||||
if (!gst_structure_get_int (s, "payload", &payload)) {
|
||||
gst_caps_unref (caps);
|
||||
return;
|
||||
}
|
||||
|
||||
GST_RTP_SESSION_LOCK (session);
|
||||
GST_DEBUG_OBJECT (bin, "insert caps for payload %d", payload);
|
||||
|
|
Loading…
Reference in a new issue