Commit 74e5edbf authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

zip: fix initialization order

parent 66d66513
...@@ -182,9 +182,6 @@ int StreamOpen( vlc_object_t *p_this ) ...@@ -182,9 +182,6 @@ int StreamOpen( vlc_object_t *p_this )
if( !p_sys ) if( !p_sys )
return VLC_ENOMEM; return VLC_ENOMEM;
s->pf_read = Read;
s->pf_control = Control;
p_sys->fileFunctions = ( zlib_filefunc_def * ) p_sys->fileFunctions = ( zlib_filefunc_def * )
calloc( 1, sizeof( zlib_filefunc_def ) ); calloc( 1, sizeof( zlib_filefunc_def ) );
if( !p_sys->fileFunctions ) if( !p_sys->fileFunctions )
...@@ -219,7 +216,8 @@ int StreamOpen( vlc_object_t *p_this ) ...@@ -219,7 +216,8 @@ int StreamOpen( vlc_object_t *p_this )
} }
p_sys->psz_path = s->psz_path; p_sys->psz_path = s->psz_path;
s->psz_path = psz_tmp; s->psz_path = psz_tmp;
s->pf_read = Read;
s->pf_control = Control;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
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