mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
filesrc/sink: improve warning message a bit (wrong state)
Unify and turn those into element warnings.
This commit is contained in:
parent
4165cdf4af
commit
e938861cb8
2 changed files with 8 additions and 3 deletions
|
@ -251,8 +251,10 @@ gst_file_sink_set_location (GstFileSink * sink, const gchar * location)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
was_open:
|
was_open:
|
||||||
{
|
{
|
||||||
g_warning ("Changing the `location' property on filesink when "
|
GST_ELEMENT_WARNING (sink, RESOURCE, BUSY,
|
||||||
"a file is open not supported.");
|
("Changing the `location' property on filesink when a file is open is "
|
||||||
|
"not supported."),
|
||||||
|
("setting the 'location' property in wrong state"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -373,7 +373,10 @@ gst_file_src_set_location (GstFileSrc * src, const gchar * location)
|
||||||
/* ERROR */
|
/* ERROR */
|
||||||
wrong_state:
|
wrong_state:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (src, "setting location in wrong state");
|
GST_ELEMENT_WARNING (src, RESOURCE, BUSY,
|
||||||
|
("Changing the `location' property on filesrc when a file is open is "
|
||||||
|
"not supported."),
|
||||||
|
("setting the 'location' property in wrong state"));
|
||||||
GST_OBJECT_UNLOCK (src);
|
GST_OBJECT_UNLOCK (src);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue