Changeset 10c1b2686f91c3ad609dd8ab84d15c22c8bb93e4

Show
Ignore:
Timestamp:
30/06/04 18:06:11 (4 years ago)
Author:
Sigmund Augdal Helberg <sigmunau@videolan.org>
git-committer:
Sigmund Augdal Helberg <sigmunau@videolan.org> 1088611571 +0000
git-parent:

[68fc79928c07f9030bec931ffb30c51c89fe84c9]

git-author:
Sigmund Augdal Helberg <sigmunau@videolan.org> 1088611571 +0000
Message:

segfault fix when id3tag is unavailable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/mpeg/mpga.c

    r209a5a3 r10c1b26  
    181181    { 
    182182        p_sys->meta = (vlc_meta_t *)p_demux->p_private; 
    183         /* temporary */ 
    184         msg_Dbg( p_demux, "Title : %s", 
    185                  vlc_meta_GetValue( p_sys->meta,VLC_META_TITLE ) ); 
    186         p_demux->p_private = NULL; 
     183        if( p_sys->meta != NULL ) 
     184        { 
     185            /* temporary */ 
     186            msg_Dbg( p_demux, "Title : %s", 
     187                     vlc_meta_GetValue( p_sys->meta,VLC_META_TITLE ) ); 
     188            p_demux->p_private = NULL; 
     189        } 
    187190        module_Unneed( p_demux, p_id3 ); 
    188191    }