From 6745fcad40cb1771a7c6b36b5021b7bbda1875ea Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Thu, 12 Dec 2002 22:54:57 +0000 Subject: only update pos/time from video if there is no audio CVS patchset: 3498 CVS date: 2002/12/12 22:54:57 --- src/xine-engine/video_decoder.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c index 45eb1edda..21e51e4ca 100644 --- a/src/xine-engine/video_decoder.c +++ b/src/xine-engine/video_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_decoder.c,v 1.112 2002/12/06 18:38:35 miguelfreitas Exp $ + * $Id: video_decoder.c,v 1.113 2002/12/12 22:54:57 guenter Exp $ * */ @@ -77,12 +77,14 @@ void *video_decoder_loop (void *stream_gen) { buf = stream->video_fifo->get (stream->video_fifo); - if (buf->input_pos) - stream->input_pos = buf->input_pos; if (buf->input_length) stream->input_length = buf->input_length; - if (buf->input_time) { - stream->input_time = buf->input_time; + + if (!stream->stream_info[XINE_STREAM_INFO_HAS_AUDIO]) { + if (buf->input_pos) + stream->input_pos = buf->input_pos; + if (buf->input_time) + stream->input_time = buf->input_time; } #ifdef LOG -- cgit v1.2.3