set sate of pipeline to NULL prior to exit

This commit is contained in:
Brandon Lewis 2010-07-26 20:40:06 +02:00 committed by Edward Hervey
parent fa60c9cb9d
commit 496c654728

View file

@ -427,8 +427,10 @@ void
app_dispose (App * app)
{
if (app) {
if (app->pipeline)
if (app->pipeline) {
gst_element_set_state (GST_ELEMENT (app->pipeline), GST_STATE_NULL);
gst_object_unref (app->pipeline);
}
g_free (app);
}