[689/906] bumper: nicer error for no bumpmap file proveded

This commit is contained in:
Matthew Waters 2013-04-25 12:04:23 +10:00
parent a9106ccce9
commit b0c6d98f63

View file

@ -172,6 +172,11 @@ gst_gl_bumper_init_resources (GstGLFilter * filter)
if (!display)
return;
if (!bumper->location) {
gst_gl_display_set_error (display, "A filename is required");
return;
}
/* BEGIN load png image file */
if ((fp = fopen (bumper->location, "rb")) == NULL)