matroskamux: Pass the right size to gst_collect_pads_add_pad

We were lucky that GstMatroskamuxPad is larger than GstMatroskaPad.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/merge_requests/393
This commit is contained in:
Jan Alexander Steffens (heftig) 2019-11-19 14:23:48 +01:00
parent 23089e9cc3
commit 1e7d2e2bbd
No known key found for this signature in database
GPG key ID: DE5E0C5F25941CA5

View file

@ -2439,7 +2439,7 @@ gst_matroska_mux_request_new_pad (GstElement * element,
gst_matroskamux_pad_init (newpad);
collect_pad = (GstMatroskaPad *)
gst_collect_pads_add_pad (mux->collect, GST_PAD (newpad),
sizeof (GstMatroskamuxPad),
sizeof (GstMatroskaPad),
(GstCollectDataDestroyNotify) gst_matroska_pad_free, locked);
collect_pad->mux = mux;