Changeset 3f035aadc331e5b30fa2db29c24462e50e624404

Show
Ignore:
Timestamp:
06/07/07 18:39:38 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1181234378 +0000
git-parent:

[47e6dfa48ec84ff167d27d4cf304ef0cb9152e03]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1181234378 +0000
Message:

Fix deadlock

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/audio_output/dec.c

    r0e39834 r3f035aa  
    5959    { 
    6060        msg_Err( p_aout, "too many inputs already (%d)", p_aout->i_nb_inputs ); 
    61         return NULL
     61        goto error
    6262    } 
    6363 
     
    6666    { 
    6767        msg_Err( p_aout, "out of memory" ); 
    68         return NULL
     68        goto error
    6969    } 
    7070 
     
    117117    { 
    118118        aout_OutputDelete( p_aout ); 
    119         vlc_mutex_unlock( &p_aout->mixer_lock ); 
    120         return NULL; 
     119        goto error; 
    121120    } 
    122121 
     
    124123 
    125124    vlc_mutex_unlock( &p_aout->mixer_lock ); 
    126  
    127125    var_Create( p_this, "audio-desync", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT ); 
    128126    var_Get( p_this, "audio-desync", &val ); 
     
    146144 
    147145    return p_input; 
     146 
     147error: 
     148    vlc_mutex_unlock( &p_aout->mixer_lock ); 
     149    return NULL; 
    148150} 
    149151