From 025784fd837299dd3babfa0a1f65480c3ad4458e Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Mon, 30 Jan 2012 16:25:54 -0500 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/src/shell-recorder-src.c b/src/shell-recorder-src.c index 59a517e15..55272980f 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);