summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-30 22:19:38 +0200
committerwm4 <wm4@nowhere>2014-04-30 22:19:38 +0200
commit3f0f666d143c9785dc679a7e36a801e952305a57 (patch)
tree6eebb40a1093839c3c8232c2f273a75cbcd88300 /video
parent8e8758dbe15ed7611c65856d62c3f44b5be73d7e (diff)
downloadmpv-3f0f666d143c9785dc679a7e36a801e952305a57.tar.bz2
mpv-3f0f666d143c9785dc679a7e36a801e952305a57.tar.xz
vf: print error if filtering a frame fails
The filters don't always print an error on their own, and printing an error is better than silently dropping the frame.
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/video/filter/vf.c b/video/filter/vf.c
index 021a0e21ae..03afae6b13 100644
--- a/video/filter/vf.c
+++ b/video/filter/vf.c
@@ -367,7 +367,10 @@ static int vf_do_filter(struct vf_instance *vf, struct mp_image *img)
vf_fix_img_params(img, &vf->fmt_in);
if (vf->filter_ext) {
- return vf->filter_ext(vf, img);
+ int r = vf->filter_ext(vf, img);
+ if (r < 0)
+ MP_ERR(vf, "Error filtering frame.\n");
+ return r;
} else {
if (img) {
if (vf->filter)