scenario: Do not remove GSource if it has never been set

This commit is contained in:
Thibault Saunier 2014-01-14 10:31:27 +01:00
parent 705f8e7766
commit ac92d5b428

View file

@ -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");