Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-03-09 22:31:48 +0300
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-09-25 03:33:43 +0300
commit90077c2f1d384c403d19fc3f2081ededf1ea725e (patch)
tree4f44efef8c3f94f7d22d6217b2be893de3c519dd
parent27e766137c7d4c7237896356bd90d6a37aa929e2 (diff)
identity: Use g_cond_signal() instead of g_cond_broadcast()
There can only be a single waiter: on the streaming thread. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/397>
-rw-r--r--plugins/elements/gstidentity.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/elements/gstidentity.c b/plugins/elements/gstidentity.c
index b88a7d34aa..cf4c19c532 100644
--- a/plugins/elements/gstidentity.c
+++ b/plugins/elements/gstidentity.c
@@ -464,7 +464,7 @@ gst_identity_sink_event (GstBaseTransform * trans, GstEvent * event)
if (GST_EVENT_TYPE (event) == GST_EVENT_FLUSH_START) {
GST_OBJECT_LOCK (identity);
identity->flushing = TRUE;
- g_cond_broadcast (&identity->blocked_cond);
+ g_cond_signal (&identity->blocked_cond);
if (identity->clock_id) {
GST_DEBUG_OBJECT (identity, "unlock clock wait");
gst_clock_id_unschedule (identity->clock_id);
@@ -1013,7 +1013,7 @@ gst_identity_change_state (GstElement * element, GstStateChange transition)
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
GST_OBJECT_LOCK (identity);
identity->blocked = FALSE;
- g_cond_broadcast (&identity->blocked_cond);
+ g_cond_signal (&identity->blocked_cond);
GST_OBJECT_UNLOCK (identity);
break;
case GST_STATE_CHANGE_PAUSED_TO_READY:
@@ -1024,7 +1024,7 @@ gst_identity_change_state (GstElement * element, GstStateChange transition)
gst_clock_id_unschedule (identity->clock_id);
}
identity->blocked = FALSE;
- g_cond_broadcast (&identity->blocked_cond);
+ g_cond_signal (&identity->blocked_cond);
GST_OBJECT_UNLOCK (identity);
break;
default: