dashsink: add h265 codec support

Return hvc1 for video/x-h265 mime type in mpd helper function

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1966>
This commit is contained in:
Haihua Hu 2021-01-20 20:04:20 +08:00 committed by GStreamer Merge Bot
parent db134d27a0
commit 66788366a0

View file

@ -122,6 +122,8 @@ gst_mpd_helper_get_video_codec_from_mime (GstCaps * caps)
name = gst_structure_get_name (s); name = gst_structure_get_name (s);
if (!g_strcmp0 (name, "video/x-h264")) { if (!g_strcmp0 (name, "video/x-h264")) {
return "avc1"; return "avc1";
} else if (!g_strcmp0 (name, "video/x-h265")) {
return "hvc1";
} else { } else {
GST_DEBUG ("No codecs for this caps name %s", name); GST_DEBUG ("No codecs for this caps name %s", name);
} }