From 3d56d04596432b38df459892f39105722d49aa56 Mon Sep 17 00:00:00 2001 From: Claudio Ciccani Date: Fri, 22 Dec 2006 16:45:44 +0000 Subject: Check whether or not we are playing before calling input_plugin->seek_time(). CVS patchset: 8434 CVS date: 2006/12/22 16:45:44 --- src/demuxers/demux_real.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c index 90852c25c..8dfb7b679 100644 --- a/src/demuxers/demux_real.c +++ b/src/demuxers/demux_real.c @@ -31,7 +31,7 @@ * * Based on FFmpeg's libav/rm.c. * - * $Id: demux_real.c,v 1.110 2006/12/18 21:31:47 klan Exp $ + * $Id: demux_real.c,v 1.111 2006/12/22 16:45:44 klan Exp $ */ #ifdef HAVE_CONFIG_H @@ -1456,7 +1456,7 @@ static int demux_real_seek (demux_plugin_t *this_gen, _x_demux_flush_engine(this->stream); } } - else if (this->input->seek_time != NULL) { + else if (!playing && this->input->seek_time != NULL) { /* RTSP supports only time based seek */ if (start_pos && !start_time) start_time = (int64_t) this->duration * start_pos / 65535; -- cgit v1.2.3