summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-30 02:10:21 +0200
committerwm4 <wm4@nowhere>2012-07-30 02:11:02 +0200
commitf867a97b4863a32477c6e21bf0fbbe63aae7cb5a (patch)
tree9ad38361c58b3e174e6672a97db5e16551405be3
parenteb75758138847c657dbaab9836764f3893bc62e7 (diff)
downloadmpv-f867a97b4863a32477c6e21bf0fbbe63aae7cb5a.tar.bz2
mpv-f867a97b4863a32477c6e21bf0fbbe63aae7cb5a.tar.xz
mplayer: cosmetics: give A/V desync message same form as help text
-rw-r--r--mplayer.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/mplayer.c b/mplayer.c
index 38f4543fcf..96e549745e 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -174,28 +174,28 @@ static const char help_text[] = _(
" --playlist=<file> specify playlist file\n"
"\n");
-
-#define SystemTooSlow _("\n\n"\
-" *************************************************\n"\
-" **** Audio/Video desynchronisation detected! ****\n"\
-" *************************************************\n\n"\
-"This means either the audio or the video is played too slowly.\n"\
-"Possible reasons, problems, workarounds:\n"\
-"- Your system is simply too slow for this file.\n"\
-" Transcode it to a lower bitrate file with tools like HandBrake.\n"\
-"- Broken/buggy _audio_ driver.\n"\
-" Experiment with different values for --autosync, 30 is a good start.\n"\
-" If you have PulseAudio, try --ao=alsa .\n"\
-"- Slow video output.\n"\
-" Try a different -vo driver (-vo help for a list) or try -framedrop!\n"\
-"- Playing a video file with --vo=gl/gl3 with higher FPS than your monitor.\n"\
-" This is due to vsync limiting the framerate. Try --no-vsync, or a\n"\
-" different VO.\n"\
-"- Playing from a slow network source.\n"\
-" Download the file instead.\n"\
-"- Try to find out whether audio or video is causing this by experimenting\n"\
-" with --no-video and --no-audio.\n"\
-"If none of this helps you, file a bug report.\n\n")
+static const char av_desync_help_text[] = _(
+"\n\n"
+" *************************************************\n"
+" **** Audio/Video desynchronisation detected! ****\n"
+" *************************************************\n\n"
+"This means either the audio or the video is played too slowly.\n"
+"Possible reasons, problems, workarounds:\n"
+"- Your system is simply too slow for this file.\n"
+" Transcode it to a lower bitrate file with tools like HandBrake.\n"
+"- Broken/buggy _audio_ driver.\n"
+" Experiment with different values for --autosync, 30 is a good start.\n"
+" If you have PulseAudio, try --ao=alsa .\n"
+"- Slow video output.\n"
+" Try a different -vo driver (-vo help for a list) or try -framedrop!\n"
+"- Playing a video file with --vo=gl/gl3 with higher FPS than your monitor.\n"
+" This is due to vsync limiting the framerate. Try --no-vsync, or a\n"
+" different VO.\n"
+"- Playing from a slow network source.\n"
+" Download the file instead.\n"
+"- Try to find out whether audio or video is causing this by experimenting\n"
+" with --no-video and --no-audio.\n"
+"If none of this helps you, file a bug report.\n\n");
//**************************************************************************//
@@ -1096,7 +1096,7 @@ static void print_status(struct MPContext *mpctx, double a_pos, bool at_frame)
mpctx->last_av_difference = MP_NOPTS_VALUE;
if (mpctx->last_av_difference > 0.5 && drop_frame_cnt > 50
&& !mpctx->drop_message_shown) {
- mp_tmsg(MSGT_AVSYNC, MSGL_WARN, SystemTooSlow);
+ mp_tmsg(MSGT_AVSYNC, MSGL_WARN, mp_gtext(av_desync_help_text));
mpctx->drop_message_shown = true;
}
}