mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
composition: Remove useless flush_start argument from the stop_task method
Co-Authored by: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
This commit is contained in:
parent
44e95d240a
commit
5ec01408df
1 changed files with 3 additions and 8 deletions
|
@ -358,23 +358,18 @@ _start_task (GnlComposition * comp)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
_stop_task (GnlComposition * comp, GstEvent * flush_start)
|
_stop_task (GnlComposition * comp)
|
||||||
{
|
{
|
||||||
gboolean res = TRUE;
|
gboolean res = TRUE;
|
||||||
GstTask *task;
|
GstTask *task;
|
||||||
GnlObject *obj = GNL_OBJECT (comp);
|
|
||||||
|
|
||||||
GST_ERROR_OBJECT (comp, "%s srcpad task",
|
GST_INFO_OBJECT (comp, "Stoping children management task");
|
||||||
flush_start ? "Pausing" : "Stopping");
|
|
||||||
|
|
||||||
comp->priv->running = FALSE;
|
comp->priv->running = FALSE;
|
||||||
|
|
||||||
/* Clean the stack of GSource set on the MainContext */
|
/* Clean the stack of GSource set on the MainContext */
|
||||||
g_main_context_wakeup (comp->priv->mcontext);
|
g_main_context_wakeup (comp->priv->mcontext);
|
||||||
_remove_all_sources (comp);
|
_remove_all_sources (comp);
|
||||||
if (flush_start) {
|
|
||||||
res = gst_pad_push_event (obj->srcpad, flush_start);
|
|
||||||
}
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (comp, "stop task");
|
GST_DEBUG_OBJECT (comp, "stop task");
|
||||||
|
|
||||||
|
@ -924,7 +919,7 @@ gnl_composition_finalize (GObject * object)
|
||||||
g_mutex_clear (&priv->flushing_lock);
|
g_mutex_clear (&priv->flushing_lock);
|
||||||
g_mutex_clear (&priv->pending_io_lock);
|
g_mutex_clear (&priv->pending_io_lock);
|
||||||
|
|
||||||
_stop_task (comp, FALSE);
|
_stop_task (comp);
|
||||||
g_rec_mutex_clear (&comp->task_rec_lock);
|
g_rec_mutex_clear (&comp->task_rec_lock);
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
|
|
Loading…
Reference in a new issue