1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 04:45:33 +00:00

video: improve error messages

This commit is contained in:
wm4 2014-04-30 22:20:08 +02:00
parent 3f0f666d14
commit ee574c67ea
2 changed files with 2 additions and 3 deletions

View File

@ -1011,8 +1011,7 @@ void run_playloop(struct MPContext *mpctx)
MP_TRACE(mpctx, "frametime=%5.3f\n", frame_time);
if (mpctx->d_video->vfilter && mpctx->d_video->vfilter->initialized < 0)
{
MP_FATAL(mpctx, "\nFATAL: Could not initialize video filters "
"(-vf) or video output (-vo).\n");
MP_FATAL(mpctx, "Could not initialize video chain.\n");
int uninit = INITIALIZED_VCODEC;
if (!opts->force_vo)
uninit |= INITIALIZED_VO;

View File

@ -432,7 +432,7 @@ int video_reconfig_filters(struct dec_video *d_video,
p.w, p.h, p.d_w, p.d_h, p.imgfmt);
if (vf_reconfig(d_video->vfilter, &p) < 0) {
MP_WARN(d_video, "FATAL: Cannot initialize video driver.\n");
MP_FATAL(d_video, "Cannot initialize video filters.\n");
return -1;
}