[clutter-gst] player: Do accurate seeks
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst] player: Do accurate seeks
- Date: Wed, 31 Aug 2011 23:07:30 +0000 (UTC)
commit f0bdd011124925e31e449657ce29d8fbbefcb238
Author: Damien Lespiau <damien lespiau intel com>
Date: Thu Sep 1 00:06:35 2011 +0100
player: Do accurate seeks
examples/video-player.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/examples/video-player.c b/examples/video-player.c
index f5b3e55..dd4d93f 100644
--- a/examples/video-player.c
+++ b/examples/video-player.c
@@ -326,6 +326,15 @@ main (int argc, char *argv[])
if (app->vtexture == NULL)
g_error("failed to create vtexture");
+ /* By default ClutterGst seeks to the nearest key frame (faster). However
+ * it has the weird effect that when you click on the progress bar, the fill
+ * goes to the key frame position that can be quite far from where you
+ * clicked. Using the ACCURATE flag tells playbin2 to seek to the actual
+ * frame */
+ clutter_gst_video_texture_set_seek_flags (
+ CLUTTER_GST_VIDEO_TEXTURE (app->vtexture),
+ CLUTTER_GST_SEEK_FLAG_ACCURATE);
+
g_signal_connect (stage,
"allocation-changed",
G_CALLBACK (on_stage_allocation_changed),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]