Commit 99b7d907 authored by Thomas Guillem's avatar Thomas Guillem

videotoolbox: don't ignore StartVideoToolbox() return

And abort if the vtsession can't handle a profile/level.

(cherry picked from commit 376de21e)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 8cd49aa0
......@@ -1849,11 +1849,8 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
if(!p_sys->session)
{
if(!p_sys->pf_codec_supported || p_sys->pf_codec_supported(p_dec))
{
StartVideoToolbox(p_dec);
}
else
if ((p_sys->pf_codec_supported && !p_sys->pf_codec_supported(p_dec))
|| StartVideoToolbox(p_dec) != VLC_SUCCESS)
{
/* The current device doesn't handle the profile/level, abort */
vlc_mutex_lock(&p_sys->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment