shell-recorder: Timestamp buffers from the pipeline clock, not the wall clock

This should give more accurate timestamps on the video buffers, and especially
keep A/V sync when audio is also recorded.

https://bugzilla.gnome.org/show_bug.cgi?id=744642
This commit is contained in:
Sebastian Dröge
2015-02-17 10:16:44 +02:00
parent c7031d9e56
commit c4a775e94a
2 changed files with 15 additions and 24 deletions

View File

@ -43,7 +43,6 @@ shell_recorder_src_init (ShellRecorderSrc *src)
{
gst_base_src_set_format (GST_BASE_SRC (src), GST_FORMAT_TIME);
gst_base_src_set_live (GST_BASE_SRC (src), TRUE);
gst_base_src_set_do_timestamp (GST_BASE_SRC (src), TRUE);
src->queue = g_async_queue_new ();
src->mutex = &src->mutex_data;