qtmux: Remove the pad from our internal list before calling collectpads
authorEdward Hervey <bilboed@bilboed.com>
Mon, 21 Jun 2010 17:39:54 +0000 (19:39 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 21 Jun 2010 17:42:50 +0000 (19:42 +0200)
commit02cc3313b4518582e3b23f51006e3c8a37f52d98
tree2c9fa6d058d442a104948e192a6fe7c72fb26ccd
parent478ef90cf998e6ca3e385256a941fd2ca34c23fc
qtmux: Remove the pad from our internal list before calling collectpads

Previously we would end up with the collectpaddata structure already freed.
This would result in a bogus iteration of mux->sinkpads (all the
GstQTPad being freed) and it wouldn't be removed from that list.

Finally, due to it not being removed from that list, we would end up
calling a bogus gst_qt_mux_pad_reset on those structures => SEGFAULT
gst/qtmux/gstqtmux.c