Name: gstreamer
Version: 1.16.2
-Release: 3
+Release: 4
Summary: Streaming-Media Framework Runtime
License: LGPL-2.0+
Group: Multimedia/Framework
-DTIZEN_FEATURE_FAKESINK_MODIFICATION\
-DTIZEN_FEATURE_INPUT_SELECTOR_MODIFICATION\
-DTIZEN_FEATURE_UPSTREAM\
+ -DTIZEN_FEATURE_SEEK_THRESHOLD\
%if "%{tizen_profile_name}" == "tv"
-DTIZEN_PROFILE_TV\
-DTIZEN_FEATURE_TRUSTZONE\
/* FIXME, find a good threshold based on the incoming rate. */
threshold = 1024 * 512;
+#ifdef TIZEN_FEATURE_SEEK_THRESHOLD
+ guint64 seek_thresholds[] =
+ {(1.5*1024*1024), (1*1024*1024), (512*1024), (256*1024)};
+
+ for (int i = 0 ; i < G_N_ELEMENTS(seek_thresholds) ; i++) {
+ if (seek_thresholds[i] < (guint64)queue->byte_in_rate) {
+ threshold = seek_thresholds[i];
+ break;
+ }
+ }
+#endif
+
if (QUEUE_IS_USING_RING_BUFFER (queue)) {
threshold = MIN (threshold,
QUEUE_MAX_BYTES (queue) - queue->cur_level.bytes);