Properly give an error if no file was given

Original commit message from CVS:
Properly give an error if no file was given
This commit is contained in:
Ronald S. Bultje 2003-10-20 14:58:07 +00:00
parent 2021fd636c
commit 40b7ac445c
2 changed files with 4 additions and 2 deletions

View file

@ -211,7 +211,8 @@ gst_filesink_open_file (GstFileSink *sink)
/* open the file */
if (!sink->filename)
{
/* Out of files */
gst_element_error (GST_ELEMENT (sink),
"Error opening file: no file given");
return FALSE;
}

View file

@ -211,7 +211,8 @@ gst_filesink_open_file (GstFileSink *sink)
/* open the file */
if (!sink->filename)
{
/* Out of files */
gst_element_error (GST_ELEMENT (sink),
"Error opening file: no file given");
return FALSE;
}