Sync with 2.4 [Setting default property of appsink equivalent to fakesink]. 35/56335/1 accepted/tizen/mobile/20160114.011207 accepted/tizen/tv/20160114.011226 accepted/tizen/wearable/20160114.011251 submit/tizen/20160113.062953
authorDEEPAK SRIVASTAVA <srivastava.d@samsung.com>
Wed, 6 Jan 2016 11:09:53 +0000 (16:39 +0530)
committerDEEPAK SRIVASTAVA <srivastava.d@samsung.com>
Wed, 6 Jan 2016 11:12:01 +0000 (16:42 +0530)
Change-Id: I8155182548a7a87fa965aceda319f1eda640ce26
Signed-off-by: DEEPAK SRIVASTAVA <srivastava.d@samsung.com>
src/port_gst/mediademuxer_port_gst.c

index d2c7401e53ae311de2f57b6c91c2df49c5886db7..613ff51366f46ede96d9a1d0ffb16565a436554b 100755 (executable)
@@ -238,7 +238,8 @@ int __gst_add_track_info(GstPad *pad, gchar *name, track **head,
                return MD_ERROR;
        }
        gst_bin_add_many(GST_BIN(pipeline), temp->appsink, NULL);
-       gst_app_sink_set_max_buffers((GstAppSink *) temp->appsink, MAX_APP_BUFFER);
+       gst_app_sink_set_max_buffers((GstAppSink *) temp->appsink, (guint) 0);
+       gst_app_sink_set_drop((GstAppSink *) temp->appsink, true);
        MEDIADEMUXER_SET_STATE(temp->appsink, GST_STATE_PAUSED, ERROR);
        apppad = gst_element_get_static_pad(temp->appsink, "sink");
        if (!apppad) {