demux: asf: add check in control (CID 1132753)
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 27 Nov 2013 13:13:01 +0000 (14:13 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 27 Nov 2013 13:13:01 +0000 (14:13 +0100)
If fp object was missing...

modules/demux/asf/asf.c

index 8239340..83d62f5 100644 (file)
@@ -381,9 +381,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
 
     default:
         return demux_vaControlHelper( p_demux->s, p_sys->i_data_begin,
 
     default:
         return demux_vaControlHelper( p_demux->s, p_sys->i_data_begin,
-                                       p_sys->i_data_end, p_sys->i_bitrate,
-                                       p_sys->p_fp->i_min_data_packet_size,
-                                       i_query, args );
+                    p_sys->i_data_end, p_sys->i_bitrate,
+                    ( p_sys->p_fp ) ? p_sys->p_fp->i_min_data_packet_size : 1,
+                    i_query, args );
     }
 }
 
     }
 }