[vlc-commits] demux: asf: add check in control (CID 1132753)

Francois Cartegnie git at videolan.org
Wed Nov 27 14:18:11 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 27 14:13:01 2013 +0100| [f5ef14fd49b340e939a68c7ff2e242316d074d33] | committer: Francois Cartegnie

demux: asf: add check in control (CID 1132753)

If fp object was missing...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f5ef14fd49b340e939a68c7ff2e242316d074d33
---

 modules/demux/asf/asf.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index 8239340..83d62f5 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -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,
-                                       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 );
     }
 }
 



More information about the vlc-commits mailing list