[689/906] bumper: nicer error for no bumpmap file proveded
This commit is contained in:
parent
a9106ccce9
commit
b0c6d98f63
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user