[gnome-shell] ShellRecorderSrc: Set as GST_FORMAT_TIME



commit 025784fd837299dd3babfa0a1f65480c3ad4458e
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Jan 30 16:25:54 2012 -0500

    ShellRecorderSrc: Set as GST_FORMAT_TIME
    
    We need to indicate that our GStreamer source produces timestamped
    frames, instead of the default, which is to produce a stream of bytes.
    This is needed for correctness, and to avoid warnings for some
    pipelines.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=669066

 src/shell-recorder-src.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-recorder-src.c b/src/shell-recorder-src.c
index 59a517e..5527298 100644
--- a/src/shell-recorder-src.c
+++ b/src/shell-recorder-src.c
@@ -40,6 +40,8 @@ static void
 shell_recorder_src_init (ShellRecorderSrc      *src,
 			 ShellRecorderSrcClass *klass)
 {
+  gst_base_src_set_format (GST_BASE_SRC (src), GST_FORMAT_TIME);
+
   src->queue = g_async_queue_new ();
   src->mutex = &src->mutex_data;
   g_mutex_init (src->mutex);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]