From 1753d2931c4fe346ca5d2781991a2a21bd3dddb2 Mon Sep 17 00:00:00 2001 From: Haihua Hu Date: Wed, 20 Jan 2021 18:16:17 +0800 Subject: [PATCH] dashsink: fix double unref of sinkpad caps no need to unref caps in gst_mpd_helper_get_XXX_codec_from_mime it will be unref in caller gst_dash_sink_get_stream_metadata() Part-of: --- ext/dash/gstmpdhelper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/dash/gstmpdhelper.c b/ext/dash/gstmpdhelper.c index d2f665c2ef..3312f56e93 100644 --- a/ext/dash/gstmpdhelper.c +++ b/ext/dash/gstmpdhelper.c @@ -103,7 +103,6 @@ gst_mpd_helper_get_audio_codec_from_mime (GstCaps * caps) } done: - gst_caps_unref (caps); return codec_name; } @@ -128,7 +127,6 @@ gst_mpd_helper_get_video_codec_from_mime (GstCaps * caps) } done: - gst_caps_unref (caps); return codec_name; }