summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-04-29 23:26:54 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-04-30 13:09:34 +0100
commitae56d7136310ab967479e1e0b6280cd06c46094d (patch)
tree45b9a76204c4a069886d72f769b4e3284590a29f
parent7c4e0537d314e1f531fa75d4f0b0e9cef08909d2 (diff)
element: make 'adding flushing pad' warning more useful
This is a pretty common issue with ghost pads, let's make the warning more helpful and tell people what they need to do to fix it.
-rw-r--r--gst/gstelement.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/gstelement.c b/gst/gstelement.c
index a340d6cf48..99c5d19eb8 100644
--- a/gst/gstelement.c
+++ b/gst/gstelement.c
@@ -712,7 +712,8 @@ gst_element_add_pad (GstElement * element, GstPad * pad)
/* check for flushing pads */
if (flushing && (GST_STATE (element) > GST_STATE_READY ||
GST_STATE_NEXT (element) == GST_STATE_PAUSED)) {
- g_warning ("adding flushing pad '%s' to running element '%s'",
+ g_warning ("adding flushing pad '%s' to running element '%s', you need to "
+ "use gst_pad_set_active(pad,TRUE) before adding it.",
GST_STR_NULL (pad_name), GST_ELEMENT_NAME (element));
/* unset flushing */
GST_OBJECT_LOCK (pad);