1
mirror of https://code.videolan.org/videolan/vlc synced 2024-08-27 04:21:53 +02:00

fourcc: derecursify the Find() function

This commit is contained in:
Rémi Denis-Courmont 2015-06-11 19:21:06 +03:00
parent 9ad76e4f45
commit 351869f2f4

View File

@ -1666,11 +1666,11 @@ static entry_t Find( int i_cat, vlc_fourcc_t i_fourcc )
return Lookup( p_list_spu, i_fourcc );
default:
e = Find( VIDEO_ES, i_fourcc );
e = Lookup( p_list_video, i_fourcc );
if( CreateFourcc( e.p_class ) == 0 )
e = Find( AUDIO_ES, i_fourcc );
e = Lookup( p_list_audio, i_fourcc );
if( CreateFourcc( e.p_class ) == 0 )
e = Find( SPU_ES, i_fourcc );
e = Lookup( p_list_spu, i_fourcc );
return e;
}
}