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:
parent
3f0f666d14
commit
ee574c67ea
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user