mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
Add commented-out ring-buffer size limitation (for pedagogic purposes)
This commit is contained in:
parent
279e01a158
commit
e7a0bcbb6e
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue