From 36bb7c76b1036b20f2e3df1c8a2e3c6cffe0a4c5 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 12 Jun 2009 17:51:22 +0300 Subject: [PATCH] filesrc/sink: turn the bus messages into g_warning Its a programming error. --- plugins/elements/gstfilesink.c | 6 ++---- 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; }