Commit 7984a1e1 authored by Christophe Massiot's avatar Christophe Massiot

* output.c: Fix a never-ending loop introduced in [146] when removing an output.

parent 15217063
...@@ -168,6 +168,9 @@ void output_Close( output_t *p_output ) ...@@ -168,6 +168,9 @@ void output_Close( output_t *p_output )
if ( !p_packet->pp_blocks[i]->i_refcount ) if ( !p_packet->pp_blocks[i]->i_refcount )
block_Delete( p_packet->pp_blocks[i] ); block_Delete( p_packet->pp_blocks[i] );
} }
p_output->p_packets = p_packet->p_next;
free( p_packet );
p_packet = p_output->p_packets;
} }
p_output->p_packets = p_output->p_last_packet = NULL; p_output->p_packets = p_output->p_last_packet = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment