filesrc/sink: turn the bus messages into g_warning
Its a programming error.
diff --git a/plugins/elements/gstfilesink.c b/plugins/elements/gstfilesink.c
index 61216df..3d9b50a 100644
--- a/plugins/elements/gstfilesink.c
+++ b/plugins/elements/gstfilesink.c
@@ -251,10 +251,8 @@
/* 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 e8b3261..f159089 100644
--- a/plugins/elements/gstfilesrc.c
+++ b/plugins/elements/gstfilesrc.c
@@ -373,10 +373,8 @@
/* 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;
}