comparison mplayer.c @ 27633:6a7cdd00599f

Add an experimental pausing_keep_force slave mode command prefix
author reimar
date Thu, 25 Sep 2008 17:40:33 +0000
parents 897f15571922
children 9d0094f6cdf6
comparison
equal deleted inserted replaced
27632:8cc7db468b6b 27633:6a7cdd00599f
2351 2351
2352 if (mpctx->audio_out && mpctx->sh_audio) 2352 if (mpctx->audio_out && mpctx->sh_audio)
2353 mpctx->audio_out->pause(); // pause audio, keep data if possible 2353 mpctx->audio_out->pause(); // pause audio, keep data if possible
2354 2354
2355 while ( (cmd = mp_input_get_cmd(20, 1, 1)) == NULL 2355 while ( (cmd = mp_input_get_cmd(20, 1, 1)) == NULL
2356 || cmd->id == MP_CMD_SET_MOUSE_POS) { 2356 || cmd->id == MP_CMD_SET_MOUSE_POS || cmd->pausing == 4) {
2357 if (cmd) { 2357 if (cmd) {
2358 cmd = mp_input_get_cmd(0,1,0); 2358 cmd = mp_input_get_cmd(0,1,0);
2359 run_command(mpctx, cmd);
2359 mp_cmd_free(cmd); 2360 mp_cmd_free(cmd);
2360 continue; 2361 continue;
2361 } 2362 }
2362 if (mpctx->sh_video && mpctx->video_out && vo_config_count) 2363 if (mpctx->sh_video && mpctx->video_out && vo_config_count)
2363 mpctx->video_out->check_events(); 2364 mpctx->video_out->check_events();