Commit 7825383f authored by Christophe Massiot's avatar Christophe Massiot

* modules/demux/demuxdump.c: Better error detection (disk full for instance).

parent 2a03eac5
......@@ -173,7 +173,7 @@ static int Demux( demux_t *p_demux )
i_data = fwrite( p_sys->buffer, 1, i_data, p_sys->p_file );
if( i_data < 0 )
if( i_data == 0 )
{
msg_Err( p_demux, "failed to write data" );
return -1;
......
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