Add commented-out ring-buffer size limitation (for pedagogic purposes)
authorXavi Artigas <xartigas@fluendo.com>
Mon, 18 Jun 2012 15:39:05 +0000 (17:39 +0200)
committerXavi Artigas <xartigas@fluendo.com>
Mon, 18 Jun 2012 15:39:05 +0000 (17:39 +0200)
gst-sdk/tutorials/playback-tutorial-3.c

index dfdb64c..a59390a 100644 (file)
@@ -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) {