mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
gst-validate: properly set pipeline to null before unref
In case it fails when going ready->paused it will remain in ready state and be unref'd in ready, leading to an assertion
This commit is contained in:
parent
e1b3ec2ad7
commit
d7c3d652d0
1 changed files with 1 additions and 0 deletions
|
@ -453,6 +453,7 @@ main (int argc, gchar ** argv)
|
|||
case GST_STATE_CHANGE_FAILURE:
|
||||
/* ignore, we should get an error message posted on the bus */
|
||||
g_print ("Pipeline failed to go to PLAYING state\n");
|
||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||
ret = -1;
|
||||
goto exit;
|
||||
case GST_STATE_CHANGE_NO_PREROLL:
|
||||
|
|
Loading…
Reference in a new issue