systemclock: Remove confusing conditional unlock

At this point the entry is always locked and needs to be unlocked.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7994>
This commit is contained in:
Sebastian Dröge 2024-11-28 15:43:08 +02:00 committed by GStreamer Marge Bot
parent 37b9bfdd2e
commit 4447114713

View File

@ -989,8 +989,7 @@ gst_system_clock_async_thread (GstClock * clock)
* _unschedule() code can see if an entry is currently being waited
* on (when its state is BUSY). */
GST_CLOCK_ENTRY_STATUS (entry) = GST_CLOCK_OK;
if (entry_needs_unlock)
GST_SYSTEM_CLOCK_ENTRY_UNLOCK ((GstClockEntryImpl *) entry);
GST_SYSTEM_CLOCK_ENTRY_UNLOCK ((GstClockEntryImpl *) entry);
GST_SYSTEM_CLOCK_LOCK (clock);
continue;
default: