filesrc/sink: turn the bus messages into g_warning
authorStefan Kost <ensonic@users.sf.net>
Fri, 12 Jun 2009 14:51:22 +0000 (17:51 +0300)
committerStefan Kost <ensonic@users.sf.net>
Fri, 12 Jun 2009 14:55:02 +0000 (17:55 +0300)
Its a programming error.

plugins/elements/gstfilesink.c
plugins/elements/gstfilesrc.c

index 61216df..3d9b50a 100644 (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;
   }
 }
index e8b3261..f159089 100644 (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;
   }