audioclock: mark as using some other clock

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
This commit is contained in:
Wim Taymans 2012-12-20 16:42:42 +01:00
parent 5e04fcd2ef
commit fe93457191

View 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;