mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
qtmux: fix reusing element
State change to READY and then back to PAUSED should still provide the proper structures as are otherwise freshly available following a request_new_pad. Pointed out by Thiago Santos.
This commit is contained in:
parent
f510be57cd
commit
654ca28f1b
1 changed files with 7 additions and 0 deletions
|
@ -293,6 +293,13 @@ gst_qt_mux_reset (GstQTMux * qtmux, gboolean alloc)
|
|||
|
||||
if (alloc) {
|
||||
qtmux->moov = atom_moov_new (qtmux->context);
|
||||
/* ensure all is as nice and fresh as request_new_pad would provide it */
|
||||
for (walk = qtmux->collect->data; walk; walk = g_slist_next (walk)) {
|
||||
GstQTPad *qtpad = (GstQTPad *) walk->data;
|
||||
|
||||
qtpad->trak = atom_trak_new (qtmux->context);
|
||||
atom_moov_add_trak (qtmux->moov, qtpad->trak);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue