Add commented-out ring-buffer size limitation (for pedagogic purposes)

This commit is contained in:
Xavi Artigas 2012-06-18 17:39:05 +02:00
parent 279e01a158
commit e7a0bcbb6e

View 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) {