Unify and turn those into element warnings.
/* ERRORS */
was_open:
{
- g_warning ("Changing the `location' property on filesink when "
- "a file is open not supported.");
+ 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"));
return FALSE;
}
}
/* ERROR */
wrong_state:
{
- GST_DEBUG_OBJECT (src, "setting location in 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"));
GST_OBJECT_UNLOCK (src);
return FALSE;
}