diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-06-12 17:51:22 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-06-12 17:55:02 +0300 |
commit | 36bb7c76b1036b20f2e3df1c8a2e3c6cffe0a4c5 (patch) | |
tree | 54869fabaa0c55f3a11c1b22dc205d1d0c8b5328 | |
parent | f456be1db6e8641d8eb0368ba836c1fb61febe41 (diff) |
filesrc/sink: turn the bus messages into g_warning
Its a programming error.
-rw-r--r-- | plugins/elements/gstfilesink.c | 6 | ||||
-rw-r--r-- | plugins/elements/gstfilesrc.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/plugins/elements/gstfilesink.c b/plugins/elements/gstfilesink.c index 61216df0bf..3d9b50a9d4 100644 --- a/plugins/elements/gstfilesink.c +++ b/plugins/elements/gstfilesink.c @@ -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; } } diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index e8b3261547..f1590890c6 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -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; } |