mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
filesrc/sink: turn the bus messages into g_warning
Its a programming error.
This commit is contained in:
parent
f456be1db6
commit
36bb7c76b1
2 changed files with 4 additions and 8 deletions
|
@ -251,10 +251,8 @@ gst_file_sink_set_location (GstFileSink * sink, const gchar * location)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
was_open:
|
was_open:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_WARNING (sink, RESOURCE, BUSY,
|
g_warning ("Changing the `location' property on filesink when a file is "
|
||||||
("Changing the `location' property on filesink when a file is open is "
|
"open is not supported.");
|
||||||
"not supported."),
|
|
||||||
("setting the 'location' property in wrong state"));
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -373,10 +373,8 @@ gst_file_src_set_location (GstFileSrc * src, const gchar * location)
|
||||||
/* ERROR */
|
/* ERROR */
|
||||||
wrong_state:
|
wrong_state:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_WARNING (src, RESOURCE, BUSY,
|
g_warning ("Changing the `location' property on filesink when a file is "
|
||||||
("Changing the `location' property on filesrc when a file is open is "
|
"open is not supported.");
|
||||||
"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