Commit 6565bfc5 authored by massiot's avatar massiot

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

   an output.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@151 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 6d52e5a2
...@@ -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