projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
279e01a
)
Add commented-out ring-buffer size limitation (for pedagogic purposes)
author
Xavi Artigas
<xartigas@fluendo.com>
Mon, 18 Jun 2012 15:39:05 +0000
(17:39 +0200)
committer
Xavi Artigas
<xartigas@fluendo.com>
Mon, 18 Jun 2012 15:39:05 +0000
(17:39 +0200)
gst-sdk/tutorials/playback-tutorial-3.c
patch
|
blob
|
history
diff --git
a/gst-sdk/tutorials/playback-tutorial-3.c
b/gst-sdk/tutorials/playback-tutorial-3.c
index
dfdb64c
..
a59390a
100644
(file)
--- 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) {