diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2013-08-02 16:17:19 +0200 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2013-11-18 16:15:53 +0000 |
commit | b737cb0ed7c979576bf256a7dbb5a080bd7f4eab (patch) | |
tree | bb688aabd80043c13de0757818e7720e5cf1aa56 /examples | |
parent | 4d7ecd56ee103379e6d15b93c9543c2f4126497a (diff) | |
download | clutter-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.c | 5 |
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), |