mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
Free the caps used for the try
Original commit message from CVS: Free the caps used for the try
This commit is contained in:
parent
f750233f91
commit
02be6646cc
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-09-16 Iain <iaingnome@gmail.com>
|
||||||
|
|
||||||
|
* gst/audioconvert/gstaudioconvert.c (_fixate_caps_to_int): Free the
|
||||||
|
try caps.
|
||||||
|
|
||||||
2004-09-15 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
2004-09-15 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* gst/mpegstream/gstdvddemux.c: (gst_dvd_demux_get_audio_stream):
|
* gst/mpegstream/gstdvddemux.c: (gst_dvd_demux_get_audio_stream):
|
||||||
|
|
|
@ -462,6 +462,7 @@ _fixate_caps_to_int (GstCaps ** caps, const gchar * field, gint value)
|
||||||
gst_caps_append (try, gst_caps_new_simple ("audio/x-raw-float", field,
|
gst_caps_append (try, gst_caps_new_simple ("audio/x-raw-float", field,
|
||||||
GST_TYPE_INT_RANGE, value, G_MAXINT, NULL));
|
GST_TYPE_INT_RANGE, value, G_MAXINT, NULL));
|
||||||
isect_higher = gst_caps_intersect (*caps, try);
|
isect_higher = gst_caps_intersect (*caps, try);
|
||||||
|
gst_caps_free (try);
|
||||||
/* FIXME: why choose to end up with the higher range, and not the fixed
|
/* FIXME: why choose to end up with the higher range, and not the fixed
|
||||||
* value ? */
|
* value ? */
|
||||||
if (!gst_caps_is_empty (isect_higher)) {
|
if (!gst_caps_is_empty (isect_higher)) {
|
||||||
|
|
Loading…
Reference in a new issue