Changeset e378b432146fae69317b197c951dc2a07d30a4de

Show
Ignore:
Timestamp:
28/06/07 21:32:02 (1 year ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1183059122 +0000
git-parent:

[128338ce014d8a40645a9cb4b6f4d0f545b7f3b3]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1183059122 +0000
Message:

Fix "Seg fault when changing mosaic 'offsets' option on the fly." Patch by hovis, #1182

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/video_filter/mosaic.c

    r23cc599 re378b43  
    890890        if( p_sys->i_offsets_length != 0 ) 
    891891        { 
     892            p_sys->i_offsets_length = 0; 
    892893            free( p_sys->pi_x_offsets ); 
    893894            free( p_sys->pi_y_offsets ); 
    894         } 
    895         p_sys->i_offsets_length = 0; 
     895            p_sys->pi_x_offsets = NULL; 
     896            p_sys->pi_y_offsets = NULL; 
     897        } 
    896898 
    897899        mosaic_ParseSetOffsets( p_this, p_sys, newval.psz_string );