mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
fix caps leak
Original commit message from CVS: fix caps leak
This commit is contained in:
parent
e29263ef06
commit
f7b6b6129e
1 changed files with 5 additions and 1 deletions
|
@ -2613,7 +2613,11 @@ ogg_find_suggest (gpointer data, guint probability, const GstCaps * caps)
|
||||||
OggTypeFind *find = (OggTypeFind *) data;
|
OggTypeFind *find = (OggTypeFind *) data;
|
||||||
|
|
||||||
if (probability > find->best_probability) {
|
if (probability > find->best_probability) {
|
||||||
gst_caps_replace (&find->caps, gst_caps_copy (caps));
|
GstCaps *copy = gst_caps_copy (caps);
|
||||||
|
|
||||||
|
gst_caps_replace (&find->caps, copy);
|
||||||
|
gst_caps_unref (copy);
|
||||||
|
|
||||||
find->best_probability = probability;
|
find->best_probability = probability;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue