From accc82cd6c20d732853d3d0d21c235005f36d03b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 2 Nov 2008 17:10:12 +0100 Subject: ffmpeg: don't rewind stream in url_close() Rewinding the stream here is not useful, but may consume valuable resources (and time). --- src/decoder/ffmpeg_plugin.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/decoder/ffmpeg_plugin.c') diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c index 2be97f62a..445d46512 100644 --- a/src/decoder/ffmpeg_plugin.c +++ b/src/decoder/ffmpeg_plugin.c @@ -111,10 +111,6 @@ static int64_t mpdurl_seek(URLContext *h, int64_t pos, int whence) static int mpdurl_close(URLContext *h) { - FopsHelper *base = (FopsHelper *) h->priv_data; - if (base && base->input->seekable) { - (void) input_stream_seek(base->input, 0, SEEK_SET); - } h->priv_data = 0; return 0; } -- cgit v1.2.3