mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
2021fd636c
commit
40b7ac445c
2 changed files with 4 additions and 2 deletions
|
@ -211,7 +211,8 @@ gst_filesink_open_file (GstFileSink *sink)
|
||||||
/* open the file */
|
/* open the file */
|
||||||
if (!sink->filename)
|
if (!sink->filename)
|
||||||
{
|
{
|
||||||
/* Out of files */
|
gst_element_error (GST_ELEMENT (sink),
|
||||||
|
"Error opening file: no file given");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -211,7 +211,8 @@ gst_filesink_open_file (GstFileSink *sink)
|
||||||
/* open the file */
|
/* open the file */
|
||||||
if (!sink->filename)
|
if (!sink->filename)
|
||||||
{
|
{
|
||||||
/* Out of files */
|
gst_element_error (GST_ELEMENT (sink),
|
||||||
|
"Error opening file: no file given");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue