Check that collectpads exists before removing pad
The core now calls release pad from finalize, at which point the collectpads might have already been freed.
This commit is contained in:
parent
3d2280beb9
commit
fe3a5c3f08
@ -503,6 +503,7 @@ gst_qt_mux_finalize (GObject * object)
|
|||||||
|
|
||||||
atoms_context_free (qtmux->context);
|
atoms_context_free (qtmux->context);
|
||||||
gst_object_unref (qtmux->collect);
|
gst_object_unref (qtmux->collect);
|
||||||
|
qtmux->collect = NULL;
|
||||||
|
|
||||||
g_slist_free (qtmux->sinkpads);
|
g_slist_free (qtmux->sinkpads);
|
||||||
|
|
||||||
@ -3165,8 +3166,10 @@ gst_qt_mux_release_pad (GstElement * element, GstPad * pad)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mux->collect) {
|
||||||
gst_collect_pads_remove_pad (mux->collect, pad);
|
gst_collect_pads_remove_pad (mux->collect, pad);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static GstPad *
|
static GstPad *
|
||||||
gst_qt_mux_request_new_pad (GstElement * element,
|
gst_qt_mux_request_new_pad (GstElement * element,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user