From e7a0bcbb6e3e88f8887ccdff993a36e8a2bc2aef Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Mon, 18 Jun 2012 17:39:05 +0200 Subject: [PATCH] Add commented-out ring-buffer size limitation (for pedagogic purposes) --- gst-sdk/tutorials/playback-tutorial-3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-sdk/tutorials/playback-tutorial-3.c b/gst-sdk/tutorials/playback-tutorial-3.c index dfdb64c..a59390a 100644 --- a/gst-sdk/tutorials/playback-tutorial-3.c +++ b/gst-sdk/tutorials/playback-tutorial-3.c @@ -135,6 +135,9 @@ int main(int argc, char *argv[]) { flags |= GST_PLAY_FLAG_DOWNLOAD; g_object_set (pipeline, "flags", flags, NULL); + /* Uncomment this line to limit the amount of downloaded data */ + /* g_object_set (pipeline, "ring-buffer-max-size", (guint64)4000000, NULL); */ + /* Start playing */ ret = gst_element_set_state (pipeline, GST_STATE_PLAYING); if (ret == GST_STATE_CHANGE_FAILURE) { -- 2.7.4