entry->caps = caps;
}
+#ifdef TIZEN_FEATURE_QTDEMUX_MODIFICATION
+ if (codec_name && list) {
+ gboolean is_audio = FALSE;
+ const GstStructure *structure = gst_caps_get_structure(entry->caps, 0);
+ if (structure && gst_structure_has_name(structure, "audio"))
+ is_audio = TRUE;
+
+ gst_tag_list_add (list, GST_TAG_MERGE_REPLACE,
+ is_audio ? GST_TAG_AUDIO_CODEC : GST_TAG_VIDEO_CODEC, codec_name, NULL);
+ }
+#else
if (codec_name && list)
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE,
GST_TAG_AUDIO_CODEC, codec_name, NULL);
+#endif
/* Add the codec_data attribute to caps, if we have it */
if (data_ptr) {