scenario: Do not remove GSource if it has never been set
This commit is contained in:
parent
705f8e7766
commit
ac92d5b428
@ -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…
x
Reference in New Issue
Block a user