summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2013-08-02 16:17:19 +0200
committerLionel Landwerlin <llandwerlin@gmail.com>2013-11-18 16:15:53 +0000
commitb737cb0ed7c979576bf256a7dbb5a080bd7f4eab (patch)
treebb688aabd80043c13de0757818e7720e5cf1aa56 /examples
parent4d7ecd56ee103379e6d15b93c9543c2f4126497a (diff)
downloadclutter-gst-b737cb0ed7c979576bf256a7dbb5a080bd7f4eab.tar.gz
video-player: By default use download buffering
Using download buffering by default is always safe to do for non-local sources. Gstreamer will automatically fallback to stream buffering if download buffering isn't possible or suitable for the remote media
Diffstat (limited to 'examples')
-rw-r--r--examples/video-player.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/video-player.c b/examples/video-player.c
index b104b5e..28db2db 100644
--- a/examples/video-player.c
+++ b/examples/video-player.c
@@ -500,9 +500,8 @@ main (int argc, char *argv[])
{
g_print ("Remote media detected, setting up buffering\n");
- /* configure to 10 seconds of buffer duration */
- clutter_gst_playback_set_buffer_duration (app->player, 10 * GST_SECOND);
- clutter_gst_playback_set_buffering_mode (app->player, CLUTTER_GST_BUFFERING_MODE_STREAM);
+ clutter_gst_playback_set_buffering_mode (app->player,
+ CLUTTER_GST_BUFFERING_MODE_DOWNLOAD);
g_signal_connect (app->player,
"notify::buffer-fill",
G_CALLBACK (on_video_actor_notify_buffer_fill),