- invalid buffering msg is posted by text track which data is too small.
so consider the audio and video track only for buffering.
Change-Id: Ib4d579dbbba7c3c105ed67e8f287c972ba9386fa
Name: gstreamer
Version: 1.16.2
-Release: 4
+Release: 5
Summary: Streaming-Media Framework Runtime
License: LGPL-2.0+
Group: Multimedia/Framework
-DTIZEN_FEATURE_FILESINK_MODIFICATION\
-DTIZEN_FEATURE_MQ_MODIFICATION\
-DTIZEN_FEATURE_MQ_MODIFICATION_EXTRA_SIZE_TIME\
+ -DTIZEN_FEATURE_MQ_SKIP_BUFFERING\
-DTIZEN_FEATURE_BASEPARSE_MODIFICATION\
-DTIZEN_FEATURE_QUEUE_MODIFICATION\
-DTIZEN_FEATURE_FAKESINK_MODIFICATION\
if (!mq->use_buffering)
return;
+#ifdef TIZEN_FEATURE_MQ_SKIP_BUFFERING
+ GstCaps *caps = gst_pad_get_current_caps(sq->sinkpad);
+ GstStructure *s;
+
+ if (caps) {
+ /* skip buffering except audio and video */
+ if ((s = gst_caps_get_structure (caps, 0)) &&
+ (!g_strrstr (gst_structure_get_name (s), "video")) &&
+ (!g_strrstr (gst_structure_get_name (s), "audio"))) {
+ gst_caps_unref(caps);
+ return;
+ }
+ gst_caps_unref(caps);
+ }
+#endif
+
buffering_level = get_buffering_level (sq);
/* scale so that if buffering_level equals the high watermark,