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 */ /* 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;
} }
} }

View file

@ -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;
} }