mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-12 13:44:56 +02:00
Fixed a check on malloc failure in libvlc_media_get_tracks_info().
This commit is contained in:
parent
f103a7c2da
commit
ca1bdb8650
@ -691,7 +691,7 @@ libvlc_media_get_tracks_info( libvlc_media_t *p_md, libvlc_media_track_info_t **
|
||||
const int i_es = p_input_item->i_es;
|
||||
*pp_es = (i_es > 0) ? malloc( i_es * sizeof(libvlc_media_track_info_t) ) : NULL;
|
||||
|
||||
if( !pp_es ) /* no ES, or OOM */
|
||||
if( !*pp_es ) /* no ES, or OOM */
|
||||
{
|
||||
vlc_mutex_unlock( &p_input_item->lock );
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user