From: Gilbok Lee Date: Mon, 4 Jan 2021 04:36:46 +0000 (+0900) Subject: dashdemux: Check bandwidth instead of video mime-type when storing variant information. X-Git-Tag: submit/tizen/20210112.010247^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99b532e421913b78d44aeeb88327d9413d9d44ce;p=platform%2Fupstream%2Fgst-plugins-bad.git dashdemux: Check bandwidth instead of video mime-type when storing variant information. - There may be no mimetype in the representation field Change-Id: Icf40af82ea8c01f649bf982ecb37d19fc33e49b0 --- diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 57629787e..dac5a5828 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -1936,11 +1936,10 @@ gst_mpdparser_parse_representation_node (GList ** list, xmlNode * a_node, (&new_representation->RepresentationBase, a_node); #ifdef TIZEN_FEATURE_ADAPTIVE_MODIFICATION - mime = new_representation->RepresentationBase->mimeType; - if (strncmp_ext(mime, "video") == 0) { + if (new_representation->bandwidth != 0) { variant_info = g_new0(struct GstVideoVariantInfo, 1); - GST_LOG ("video variant info %d, %d x %d", new_representation->bandwidth, + GST_LOG ("variant info %d, %d x %d", new_representation->bandwidth, new_representation->RepresentationBase->width, new_representation->RepresentationBase->height); diff --git a/packaging/gst-plugins-bad.spec b/packaging/gst-plugins-bad.spec index 64eff4ea6..cf1b0d648 100644 --- a/packaging/gst-plugins-bad.spec +++ b/packaging/gst-plugins-bad.spec @@ -4,7 +4,7 @@ Name: gst-plugins-bad Version: 1.16.2 -Release: 5 +Release: 6 Summary: GStreamer Streaming-Media Framework Plug-Ins License: LGPL-2.0+ Group: Multimedia/Framework