asfdemux: Send codec information through tag message. 75/195275/4 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv accepted/tizen/5.5/unified/20191031.010221 accepted/tizen/5.5/unified/mobile/hotfix/20201027.063356 accepted/tizen/unified/20190311.072520 submit/tizen/20190308.025958 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 tizen_5.5.m2_release
authorGilbok Lee <gilbok.lee@samsung.com>
Wed, 12 Dec 2018 05:45:56 +0000 (14:45 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Wed, 26 Dec 2018 07:36:35 +0000 (16:36 +0900)
Change-Id: I2779a4eb4f9fd1dd03829b25073f06256e0dcdbd

gst/asfdemux/gstasfdemux.c
packaging/gst-plugins-ugly.spec

index 3de53c2..07e6b23 100644 (file)
@@ -2743,6 +2743,14 @@ gst_asf_demux_add_audio_stream (GstASFDemux * demux,
 
   ++demux->num_audio_streams;
 
+#ifdef TIZEN_FEATURE_ASFDEMUX_POST_TAG_MSG
+  if (tags) {
+    /* post now, send event on pad later */
+    gst_element_post_message (GST_ELEMENT_CAST (demux),
+        gst_message_new_tag (GST_OBJECT_CAST (demux), gst_tag_list_copy (tags)));
+  }
+#endif
+
   return gst_asf_demux_setup_pad (demux, src_pad, caps, id, FALSE, NULL, tags);
 }
 
@@ -2939,6 +2947,14 @@ gst_asf_demux_add_video_stream (GstASFDemux * demux,
 
   ++demux->num_video_streams;
 
+#ifdef TIZEN_FEATURE_ASFDEMUX_POST_TAG_MSG
+  if (tags) {
+    /* post now, send event on pad later */
+    gst_element_post_message (GST_ELEMENT_CAST (demux),
+        gst_message_new_tag (GST_OBJECT_CAST (demux), gst_tag_list_copy (tags)));
+  }
+#endif
+
   return gst_asf_demux_setup_pad (demux, src_pad, caps, id, TRUE,
       streamheader, tags);
 }
index 0447124..9fdcdef 100644 (file)
@@ -42,6 +42,7 @@ export CFLAGS="\
 %endif
        -DTIZEN_FEATURE_ASFDEMUX_CHECK_DATA_SIZE\
        -DTIZEN_FEATURE_ASFDEMUX_DISABLE_UNSUPPORTED_FORMAT\
+       -DTIZEN_FEATURE_ASFDEMUX_POST_TAG_MSG\
        -fstack-protector-strong\
        -Wl,-z,relro\
        -D_FORTIFY_SOURCE=2"