filesrc/sink: turn the bus messages into g_warning

Its a programming error.
This commit is contained in:
Stefan Kost 2009-06-12 17:51:22 +03:00
parent f456be1db6
commit 36bb7c76b1
2 changed files with 4 additions and 8 deletions

View file

@ -251,10 +251,8 @@ gst_file_sink_set_location (GstFileSink * sink, const gchar * location)
/* ERRORS */
was_open:
{
GST_ELEMENT_WARNING (sink, RESOURCE, BUSY,
("Changing the `location' property on filesink when a file is open is "
"not supported."),
("setting the 'location' property in wrong state"));
g_warning ("Changing the `location' property on filesink when a file is "
"open is not supported.");
return FALSE;
}
}

View file

@ -373,10 +373,8 @@ gst_file_src_set_location (GstFileSrc * src, const gchar * location)
/* ERROR */
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"));
g_warning ("Changing the `location' property on filesink when a file is "
"open is not supported.");
GST_OBJECT_UNLOCK (src);
return FALSE;
}