stream: re-add accidentally removed seek call
This was under CONFIG_NETWORKING, so in theory it should have been save to remove. But actually this disables forward skipping when reading from a pipe. (Still a questionable feature, because it doesn't behave well with libavformat - but it was not supposed to be changed.)
This commit is contained in:
1 parent
e670dd7310
commit
dbf2a6f7d0
1 file changed
+7
@@ -479,6 +479,13 @@ static int stream_seek_unbuffered(stream_t *s, int64_t newpos)
|
||||
// Some streaming protocol allow to seek backward and forward
|
||||
// A function call that return -1 can tell that the protocol
|
||||
// doesn't support seeking.
|
||||
if (s->seek) {
|
||||
if (!s->seek(s, newpos)) {
|
||||
mp_tmsg(MSGT_STREAM, MSGL_ERR, "Seek failed\n");
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (newpos < s->pos) {
|
||||
mp_tmsg(MSGT_STREAM, MSGL_INFO,
|
||||
"Cannot seek backward in linear streams!\n");
|
||||
|
||||
Reference in new issue
Block a user