clock: Fix deprecation handling of the GstClock clock field

This commit is contained in:
Sebastian Dröge 2018-11-03 18:29:03 +02:00
parent 36ab067905
commit f34472822c
2 changed files with 8 additions and 0 deletions

View file

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

View file

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