]> git.sesse.net Git - vlc/commit
fix seg'faulty sout_StreamChainDelete ordering
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 10 Feb 2010 20:40:51 +0000 (22:40 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 10 Feb 2010 20:40:51 +0000 (22:40 +0200)
commitf9db0ea18e2780f43cdb10c6c82b83db77924321
tree8694713b7332096b52df02efa4db72738b6833e4
parentb4219e32116ddecfb0d4c8495309ea0dd91181c3
fix seg'faulty sout_StreamChainDelete ordering

We must delete from the head to the tail, the opposite of the creation
order. This stems from the fact that an stream output object "sees" the
next element, and may try to use it while being deleted.

The crash was easily reproducible with:
vlc --sout-keep --sout '#duplicate{dst=gather:std{mux=ts,dst=/dev/null}}' \
    -I oldrc -vv raw_es.mp2
src/stream_output/stream_output.c