From 45d2702e015c25be2dfbbee05c1c608a984f8448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 26 Apr 2021 17:36:28 +0200 Subject: [PATCH] API: fix missing drop of signals inhibit --- lib/gst/clapper/gstclapper.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/gst/clapper/gstclapper.c b/lib/gst/clapper/gstclapper.c index 35ed6242..5a9b5c8e 100644 --- a/lib/gst/clapper/gstclapper.c +++ b/lib/gst/clapper/gstclapper.c @@ -565,6 +565,7 @@ gst_clapper_set_uri_internal (gpointer user_data) (GDestroyNotify) uri_loaded_signal_data_free); } + self->inhibit_sigs = FALSE; g_mutex_unlock (&self->lock); gst_clapper_play_internal (self); @@ -3219,10 +3220,8 @@ gst_clapper_stop_internal (GstClapper * self, gboolean transient) gst_bus_set_flushing (self->bus, TRUE); gst_element_set_state (self->playbin, GST_STATE_READY); gst_bus_set_flushing (self->bus, FALSE); - change_state (self, transient - && self->app_state != - GST_CLAPPER_STATE_STOPPED ? GST_CLAPPER_STATE_BUFFERING : - GST_CLAPPER_STATE_STOPPED); + change_state (self, transient && self->app_state != GST_CLAPPER_STATE_STOPPED + ? GST_CLAPPER_STATE_BUFFERING : GST_CLAPPER_STATE_STOPPED); self->buffering = 100; self->cached_duration = GST_CLOCK_TIME_NONE; g_mutex_lock (&self->lock);