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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1981>
This commit is contained in:
Haihua Hu 2021-01-20 18:16:17 +08:00
parent e8ec8f7dd7
commit 1753d2931c

View file

@ -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;
}