mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-02 10:13:51 +00:00
set sate of pipeline to NULL prior to exit
This commit is contained in:
parent
fa60c9cb9d
commit
496c654728
1 changed files with 3 additions and 1 deletions
|
@ -427,8 +427,10 @@ void
|
||||||
app_dispose (App * app)
|
app_dispose (App * app)
|
||||||
{
|
{
|
||||||
if (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);
|
gst_object_unref (app->pipeline);
|
||||||
|
}
|
||||||
|
|
||||||
g_free (app);
|
g_free (app);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue