audioclock: use GstAudioClock* as first argument in GstAudioClock methods
authorMarcin Kolny <marcin.kolny@gmail.com>
Thu, 15 Oct 2015 10:52:27 +0000 (12:52 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Nov 2016 17:54:01 +0000 (19:54 +0200)
commit89e711663f48809cc7c68b3f3ff831c9e1695a9e
treed136b760573e6e73a9337e8eae5d0423520d43cc
parentec447d421f4ca77aab8285d42d5be625ffeaff93
audioclock: use GstAudioClock* as first argument in GstAudioClock methods

All the GstAudioClock method declarations required object of GstClock type
as a first argument, but in fact, required GstAudioClock object (runtime
check in function body). Instead of checking type in run-time, we can
change functions declaration, to accept only GstAudioClock methods. Then,
runtime check is not necessary anymore, since always GstAudioClock object
is passed to a function.

https://bugzilla.gnome.org/show_bug.cgi?id=756628
gst-libs/gst/audio/gstaudiobasesink.c
gst-libs/gst/audio/gstaudiobasesrc.c
gst-libs/gst/audio/gstaudioclock.c
gst-libs/gst/audio/gstaudioclock.h