Commit c6c15ffb authored by Rémi Duraffort's avatar Rémi Duraffort

Fix potential missing unlock (cid #1047153)

parent 0a460451
...@@ -2313,7 +2313,10 @@ static int Peek(stream_t *s, const uint8_t **pp_peek, unsigned int i_peek) ...@@ -2313,7 +2313,10 @@ static int Peek(stream_t *s, const uint8_t **pp_peek, unsigned int i_peek)
else if (peeked->i_buffer < i_peek) else if (peeked->i_buffer < i_peek)
peeked = block_Realloc (peeked, 0, i_peek); peeked = block_Realloc (peeked, 0, i_peek);
if (peeked == NULL) if (peeked == NULL)
{
vlc_mutex_unlock(&segment->lock);
return 0; return 0;
}
p_sys->peeked = peeked; p_sys->peeked = peeked;
memcpy(peeked->p_buffer, p_buff, i_buff); memcpy(peeked->p_buffer, p_buff, i_buff);
......
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