Commit ed49807f authored by Ilkka Ollakka's avatar Ilkka Ollakka

livehttp: Fix crash on when not using encryption

Call CryptKey only if we actually are encrypting stuff

Fixes: #8315
parent 8dbd863c
......@@ -673,7 +673,8 @@ static ssize_t openNextFile( sout_access_out_t *p_access, sout_access_out_sys_t
return -1;
}
CryptKey( p_access, i_newseg );
if( p_sys->key_uri )
CryptKey( p_access, i_newseg );
msg_Dbg( p_access, "Successfully opened livehttp file: %s (%"PRIu32")" , psz_seg, i_newseg );
//free( psz_seg );
......
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