dashdemux: Check bandwidth instead of video mime-type when storing variant information. 11/250711/2 accepted/tizen/unified/20210113.121051 submit/tizen/20210112.010247
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 4 Jan 2021 04:36:46 +0000 (13:36 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 4 Jan 2021 06:30:44 +0000 (15:30 +0900)
- There may be no mimetype in the representation field

Change-Id: Icf40af82ea8c01f649bf982ecb37d19fc33e49b0

ext/dash/gstmpdparser.c
packaging/gst-plugins-bad.spec

index 57629787e2fbe971d3ff6a59e1a8baf8606c29cf..dac5a58281ff1822e79db8bbe8658dbe4e0719c1 100644 (file)
@@ -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);
 
index 64eff4ea6fa66ab5290f21af537d26b696a13ea2..cf1b0d6488b059f33de7c5df152ce18d9d524d15 100644 (file)
@@ -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