summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Ciccani <klan@users.sourceforge.net>2006-12-22 16:45:44 +0000
committerClaudio Ciccani <klan@users.sourceforge.net>2006-12-22 16:45:44 +0000
commit3d56d04596432b38df459892f39105722d49aa56 (patch)
treeb0ca9801ac76332e1e96c89cc1aa25f6dbc62457
parent40df4b4fb7b470895f1e73e9eb66df177f9e910b (diff)
downloadxine-lib-3d56d04596432b38df459892f39105722d49aa56.tar.gz
xine-lib-3d56d04596432b38df459892f39105722d49aa56.tar.bz2
Check whether or not we are playing before calling input_plugin->seek_time().
CVS patchset: 8434 CVS date: 2006/12/22 16:45:44
-rw-r--r--src/demuxers/demux_real.c4
1 files 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;