audioclock: mark as using some other clock
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 20 Dec 2012 15:42:42 +0000 (16:42 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 20 Dec 2012 15:48:04 +0000 (16:48 +0100)
We need to mark our clock as using some other clock source. Alsa source uses the
clock type to decide if it can use alsa driver timestamps or not.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=690465

gst-libs/gst/audio/gstaudioclock.c

index 20dbf53..a996b2d 100644 (file)
@@ -137,7 +137,8 @@ gst_audio_clock_new (const gchar * name, GstAudioClockGetTimeFunc func,
     gpointer user_data, GDestroyNotify destroy_notify)
 {
   GstAudioClock *aclock =
-      GST_AUDIO_CLOCK (g_object_new (GST_TYPE_AUDIO_CLOCK, "name", name, NULL));
+      GST_AUDIO_CLOCK (g_object_new (GST_TYPE_AUDIO_CLOCK, "name", name,
+          "clock-type", GST_CLOCK_TYPE_OTHER, NULL));
 
   aclock->func = func;
   aclock->user_data = user_data;