gstreamer: A few small memory cleanups
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9044>
This commit is contained in:
parent
68815a3a15
commit
75cf21d834
@ -623,6 +623,7 @@ gst_ffmpeg_cfg_get_property (AVCodecContext * refcontext, GValue * value,
|
||||
if ((res = av_opt_get (refcontext, opt->name,
|
||||
AV_OPT_SEARCH_CHILDREN | AV_OPT_ALLOW_NULL, &val) >= 0)) {
|
||||
g_value_set_string (value, (gchar *) val);
|
||||
av_free (val);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -4549,6 +4549,8 @@ db_output_stream_free (DecodebinOutputStream * output)
|
||||
|
||||
if (output->src_exposed) {
|
||||
gst_element_remove_pad ((GstElement *) dbin, output->src_pad);
|
||||
} else {
|
||||
gst_clear_object (&output->src_pad);
|
||||
}
|
||||
g_free (output);
|
||||
}
|
||||
|
@ -952,13 +952,14 @@ gst_dash_demux_setup_all_streams (GstDashDemux2 * demux)
|
||||
} else {
|
||||
/* Create the track this stream provides */
|
||||
track = gst_adaptive_demux_track_new (GST_ADAPTIVE_DEMUX_CAST (demux),
|
||||
streamtype, GST_STREAM_FLAG_NONE, stream_id, codec_caps, tags);
|
||||
streamtype, GST_STREAM_FLAG_NONE, stream_id, codec_caps,
|
||||
tags ? gst_tag_list_ref (tags) : NULL);
|
||||
}
|
||||
|
||||
g_free (stream_id);
|
||||
if (tags)
|
||||
gst_adaptive_demux2_stream_set_tags (GST_ADAPTIVE_DEMUX2_STREAM_CAST
|
||||
(stream), gst_tag_list_ref (tags));
|
||||
(stream), g_steal_pointer (&tags));
|
||||
|
||||
gst_adaptive_demux2_add_stream (GST_ADAPTIVE_DEMUX_CAST (demux),
|
||||
GST_ADAPTIVE_DEMUX2_STREAM_CAST (stream));
|
||||
|
@ -790,10 +790,9 @@ debug_dump_get_tracers_info (GstDebugGraphDetails details)
|
||||
|
||||
/* Make sure each tracer line ends with \l even if it has no properties */
|
||||
g_string_append (str, "\\l");
|
||||
|
||||
}
|
||||
|
||||
g_list_free (tracers);
|
||||
g_list_free_full (tracers, gst_object_unref);
|
||||
return g_string_free (str, FALSE);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user