mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
clock: Fix deprecation handling of the GstClock clock field
This commit is contained in:
parent
36ab067905
commit
f34472822c
2 changed files with 8 additions and 0 deletions
|
@ -249,8 +249,12 @@ gst_clock_entry_new (GstClock * clock, GstClockTime time,
|
|||
"created entry %p, time %" GST_TIME_FORMAT, entry, GST_TIME_ARGS (time));
|
||||
|
||||
entry->refcount = 1;
|
||||
#ifndef GST_REMOVE_DEPRECATED
|
||||
#ifndef GST_DISABLE_DEPRECATED
|
||||
entry->clock = clock;
|
||||
#else
|
||||
entry->_clock = clock;
|
||||
#endif
|
||||
#endif
|
||||
g_weak_ref_init (&entry->ABI.clock, clock);
|
||||
entry->type = type;
|
||||
|
|
|
@ -392,8 +392,12 @@ typedef enum {
|
|||
struct _GstClockEntry {
|
||||
gint refcount;
|
||||
/*< protected >*/
|
||||
#ifndef GST_REMOVE_DEPRECATED
|
||||
#ifndef GST_DISABLE_DEPRECATED
|
||||
GstClock *clock;
|
||||
#else
|
||||
gpointer _clock;
|
||||
#endif
|
||||
#endif
|
||||
GstClockEntryType type;
|
||||
GstClockTime time;
|
||||
|
|
Loading…
Reference in a new issue