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

stream: reset peek buffer and offset when seeking to title/seekpoint

parent 67e97758
...@@ -523,6 +523,23 @@ int stream_vaControl(stream_t *s, int cmd, va_list args) ...@@ -523,6 +523,23 @@ int stream_vaControl(stream_t *s, int cmd, va_list args)
switch (cmd) switch (cmd)
{ {
case STREAM_SET_TITLE:
case STREAM_SET_SEEKPOINT:
{
int ret = s->pf_control(s, cmd, args);
if (ret != VLC_SUCCESS)
return ret;
priv->offset = 0;
if (priv->peek != NULL)
{
block_Release(priv->peek);
priv->peek = NULL;
}
return VLC_SUCCESS;
}
case STREAM_GET_PRIVATE_BLOCK: case STREAM_GET_PRIVATE_BLOCK:
{ {
block_t **b = va_arg(args, block_t **); block_t **b = va_arg(args, block_t **);
......
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