mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-29 20:35:40 +00:00
gst/playback/gstplaybasebin.c: Fix for #162924 - free caps after use, not before
Original commit message from CVS: patch by: Tim-Philipp Müller <t.i.m@zen.co.uk> * gst/playback/gstplaybasebin.c: Fix for #162924 - free caps after use, not before
This commit is contained in:
parent
29da52a347
commit
9d2bb1e905
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-01-05 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
patch by: Tim-Philipp Müller <t.i.m@zen.co.uk>
|
||||
|
||||
* gst/playback/gstplaybasebin.c:
|
||||
Fix for #162924 - free caps after use, not before
|
||||
|
||||
2005-01-04 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
patch by: Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
|
|
@ -970,7 +970,6 @@ setup_source (GstPlayBaseBin * play_base_bin, GError ** error)
|
|||
}
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
gst_caps_free (caps);
|
||||
mimetype = gst_structure_get_name (structure);
|
||||
|
||||
if (g_str_has_prefix (mimetype, "audio/x-raw") ||
|
||||
|
@ -979,6 +978,8 @@ setup_source (GstPlayBaseBin * play_base_bin, GError ** error)
|
|||
play_base_bin);
|
||||
is_raw = TRUE;
|
||||
}
|
||||
|
||||
gst_caps_free (caps);
|
||||
}
|
||||
if (is_raw) {
|
||||
no_more_pads (play_base_bin->source, play_base_bin);
|
||||
|
|
Loading…
Reference in a new issue