Commit a9ee8d8a authored by Laurent Aimar's avatar Laurent Aimar

* udp: avoid sending uninitialized memory at the end (close #168)

parent ffc45b94
...@@ -337,6 +337,7 @@ static void Close( vlc_object_t * p_this ) ...@@ -337,6 +337,7 @@ static void Close( vlc_object_t * p_this )
p_dummy->i_dts = 0; p_dummy->i_dts = 0;
p_dummy->i_pts = 0; p_dummy->i_pts = 0;
p_dummy->i_length = 0; p_dummy->i_length = 0;
memset( p_dummy->p_buffer, 0, p_dummy->i_buffer );
block_FifoPut( p_sys->p_thread->p_fifo, p_dummy ); block_FifoPut( p_sys->p_thread->p_fifo, p_dummy );
} }
vlc_thread_join( p_sys->p_thread ); vlc_thread_join( p_sys->p_thread );
......
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