mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
decodebin: unref decode pad after usage
https://bugzilla.gnome.org/show_bug.cgi?id=737757
This commit is contained in:
parent
7b428a8bcb
commit
796fd16550
1 changed files with 2 additions and 0 deletions
|
@ -1592,6 +1592,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
|
||||||
caps = gst_pad_get_current_caps (pad);
|
caps = gst_pad_get_current_caps (pad);
|
||||||
if (!caps) {
|
if (!caps) {
|
||||||
GST_DEBUG_OBJECT (dbin, "No final caps set yet, delaying autoplugging");
|
GST_DEBUG_OBJECT (dbin, "No final caps set yet, delaying autoplugging");
|
||||||
|
gst_object_unref (dpad);
|
||||||
goto setup_caps_delay;
|
goto setup_caps_delay;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1754,6 +1755,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
|
||||||
caps = gst_pad_get_current_caps (pad);
|
caps = gst_pad_get_current_caps (pad);
|
||||||
if (!caps) {
|
if (!caps) {
|
||||||
GST_DEBUG_OBJECT (dbin, "No final caps set yet, delaying autoplugging");
|
GST_DEBUG_OBJECT (dbin, "No final caps set yet, delaying autoplugging");
|
||||||
|
gst_object_unref (dpad);
|
||||||
goto setup_caps_delay;
|
goto setup_caps_delay;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue