mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
[689/906] bumper: nicer error for no bumpmap file proveded
This commit is contained in:
parent
a9106ccce9
commit
b0c6d98f63
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue