Commit 9a2dc82f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

stream: fix stream_Tell() after seek

parent b1fa0664
......@@ -475,12 +475,16 @@ int stream_vaControl(stream_t *s, int cmd, va_list args)
uint64_t pos = va_arg(args, uint64_t);
int ret = stream_ControlInternal(s, STREAM_SET_POSITION, pos);
if (ret == VLC_SUCCESS && priv->peek != NULL)
if (ret != VLC_SUCCESS)
return ret;
if (priv->peek != NULL)
{
block_Release(priv->peek);
priv->peek = NULL;
}
return ret;
priv->offset = pos;
return VLC_SUCCESS;
}
case STREAM_GET_PRIVATE_BLOCK:
......
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