diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-12-12 22:54:57 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-12-12 22:54:57 +0000 |
commit | 6745fcad40cb1771a7c6b36b5021b7bbda1875ea (patch) | |
tree | 0859e447c95850cc253c2478e3082e94959c8d60 | |
parent | e7c969f3d2ed83a57d2d1de283e20a4994bef0f7 (diff) | |
download | xine-lib-6745fcad40cb1771a7c6b36b5021b7bbda1875ea.tar.gz xine-lib-6745fcad40cb1771a7c6b36b5021b7bbda1875ea.tar.bz2 |
only update pos/time from video if there is no audio
CVS patchset: 3498
CVS date: 2002/12/12 22:54:57
-rw-r--r-- | src/xine-engine/video_decoder.c | 12 |
1 files 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 |