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,6 +729,7 @@ _pipeline_freed_cb (GstValidateScenario * scenario,
{ {
GstValidateScenarioPrivate *priv = scenario->priv; GstValidateScenarioPrivate *priv = scenario->priv;
if (priv->get_pos_id)
g_source_remove (priv->get_pos_id); g_source_remove (priv->get_pos_id);
priv->pipeline = NULL; priv->pipeline = NULL;