Mercurial > mplayer.hg
comparison mplayer.c @ 33486:e46989c7f47e
Change -udp-slave code to temporarily fall back to normal
timing after 30s network timeout.
This is the second try, this time tested with -vo xv
to avoid being tricked by vsync.
It will also still wait 30s for a message right after startup.
As a side-effect it also contains a fix against a minor issue that
-udp-slave would start up playing or seeking for files with
a non-zero start time.
author | reimar |
---|---|
date | Wed, 08 Jun 2011 18:58:10 +0000 |
parents | de7945cbcfa0 |
children | b180edfecf1b |
comparison
equal
deleted
inserted
replaced
33485:2f8dc5fbec77 | 33486:e46989c7f47e |
---|---|
2261 current_module = "calc_sleep_time"; | 2261 current_module = "calc_sleep_time"; |
2262 | 2262 |
2263 #ifdef CONFIG_NETWORKING | 2263 #ifdef CONFIG_NETWORKING |
2264 if (udp_slave) { | 2264 if (udp_slave) { |
2265 int udp_master_exited = udp_slave_sync(mpctx); | 2265 int udp_master_exited = udp_slave_sync(mpctx); |
2266 if (udp_master_exited) { | 2266 if (udp_master_exited > 0) { |
2267 mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_MasterQuit); | 2267 mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_MasterQuit); |
2268 exit_player(EXIT_QUIT); | 2268 exit_player(EXIT_QUIT); |
2269 } | 2269 } else if (udp_master_exited == 0) |
2270 return 0; | 2270 return 0; |
2271 } | 2271 } |
2272 #endif /* CONFIG_NETWORKING */ | 2272 #endif /* CONFIG_NETWORKING */ |
2273 | 2273 |
2274 *time_frame -= GetRelativeTime(); // reset timer | 2274 *time_frame -= GetRelativeTime(); // reset timer |
2275 | 2275 |