[clutter-gst] video-player: By default use download buffering
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst] video-player: By default use download buffering
- Date: Tue, 19 Nov 2013 12:21:38 +0000 (UTC)
commit b737cb0ed7c979576bf256a7dbb5a080bd7f4eab
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Fri Aug 2 16:17:19 2013 +0200
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
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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]