mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
scenario: Do not remove GSource if it has never been set
This commit is contained in:
parent
705f8e7766
commit
ac92d5b428
1 changed files with 2 additions and 1 deletions
|
@ -729,7 +729,8 @@ _pipeline_freed_cb (GstValidateScenario * scenario,
|
|||
{
|
||||
GstValidateScenarioPrivate *priv = scenario->priv;
|
||||
|
||||
g_source_remove (priv->get_pos_id);
|
||||
if (priv->get_pos_id)
|
||||
g_source_remove (priv->get_pos_id);
|
||||
priv->pipeline = NULL;
|
||||
|
||||
GST_DEBUG_OBJECT (scenario, "pipeline was freed");
|
||||
|
|
Loading…
Reference in a new issue