comparison mplayer.c @ 25416:a79a22add62a

Do not operate on vobsub when no video (Bug #312).
author ulion
date Tue, 18 Dec 2007 03:33:36 +0000
parents 084619331d92
children 55e3b1a32c65
comparison
equal deleted inserted replaced
25415:a0a6541b1944 25416:a79a22add62a
2270 mpctx->audio_out->reset(); // stop audio, throwing away buffered data 2270 mpctx->audio_out->reset(); // stop audio, throwing away buffered data
2271 mpctx->sh_audio->a_buffer_len = 0; 2271 mpctx->sh_audio->a_buffer_len = 0;
2272 mpctx->sh_audio->a_out_buffer_len = 0; 2272 mpctx->sh_audio->a_out_buffer_len = 0;
2273 } 2273 }
2274 2274
2275 if (vo_vobsub) { 2275 if (vo_vobsub && mpctx->sh_video) {
2276 current_module = "seek_vobsub_reset"; 2276 current_module = "seek_vobsub_reset";
2277 vobsub_seek(vo_vobsub, mpctx->sh_video->pts); 2277 vobsub_seek(vo_vobsub, mpctx->sh_video->pts);
2278 } 2278 }
2279 2279
2280 edl_seek_reset(mpctx); 2280 edl_seek_reset(mpctx);