dashdemux: Check bandwidth instead of video mime-type when storing variant information.
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 5762978..dac5a58 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 64eff4e..cf1b0d6 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