mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
interlace: fix caps refcounting
tcaps was unrefed when it shouldn't have been unrefed in some cases. https://bugzilla.gnome.org/show_bug.cgi?id=734531
This commit is contained in:
parent
128cbf4f57
commit
7731f3b36e
1 changed files with 1 additions and 2 deletions
|
@ -523,6 +523,7 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter)
|
||||||
if (othercaps) {
|
if (othercaps) {
|
||||||
icaps = gst_caps_intersect (othercaps, tcaps);
|
icaps = gst_caps_intersect (othercaps, tcaps);
|
||||||
gst_caps_unref (othercaps);
|
gst_caps_unref (othercaps);
|
||||||
|
gst_caps_unref (tcaps);
|
||||||
} else {
|
} else {
|
||||||
icaps = tcaps;
|
icaps = tcaps;
|
||||||
}
|
}
|
||||||
|
@ -542,8 +543,6 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter)
|
||||||
gst_caps_set_simple (icaps, "interlace-mode", G_TYPE_STRING,
|
gst_caps_set_simple (icaps, "interlace-mode", G_TYPE_STRING,
|
||||||
pad == interlace->srcpad ? mode : "progressive", NULL);
|
pad == interlace->srcpad ? mode : "progressive", NULL);
|
||||||
|
|
||||||
gst_caps_unref (tcaps);
|
|
||||||
|
|
||||||
if (clean_filter)
|
if (clean_filter)
|
||||||
gst_caps_unref (clean_filter);
|
gst_caps_unref (clean_filter);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue