mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
qa-scenario: avoid assertion on dispose
After an error, the pipeline might still be null, check before unreffing
This commit is contained in:
parent
f1368356bc
commit
2901e35f5c
1 changed files with 2 additions and 1 deletions
|
@ -442,7 +442,8 @@ gst_qa_scenario_dispose (GObject * object)
|
|||
{
|
||||
GstQaScenarioPrivate *priv = GST_QA_SCENARIO (object)->priv;
|
||||
|
||||
gst_object_unref (priv->pipeline);
|
||||
if (priv->pipeline)
|
||||
gst_object_unref (priv->pipeline);
|
||||
g_list_free_full (priv->seeks, (GDestroyNotify) _free_seek_info);
|
||||
|
||||
G_OBJECT_CLASS (gst_qa_scenario_parent_class)->dispose (object);
|
||||
|
|
Loading…
Reference in a new issue