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

stream: do not move file offset on seek error

parent 76f555de
...@@ -464,13 +464,13 @@ int stream_vaControl(stream_t *s, int cmd, va_list args) ...@@ -464,13 +464,13 @@ int stream_vaControl(stream_t *s, int cmd, va_list args)
{ {
uint64_t pos = va_arg(args, uint64_t); uint64_t pos = va_arg(args, uint64_t);
if (priv->peek != NULL) int ret = stream_ControlInternal(s, STREAM_SET_POSITION, pos);
if (ret == VLC_SUCCESS && priv->peek != NULL)
{ {
block_Release(priv->peek); block_Release(priv->peek);
priv->peek = NULL; priv->peek = NULL;
} }
return ret;
return stream_ControlInternal(s, STREAM_SET_POSITION, pos);
} }
} }
return s->pf_control(s, cmd, args); return s->pf_control(s, cmd, args);
......
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