GST_PAD_LINK_SUCCESSFUL
GstPadLinkCheck
GstFlowReturn
+gst_flow_get_name
+gst_flow_to_quark
GstPadMode
+gst_pad_mode_get_name
<SUBSECTION Application>
gst_pad_get_name
GFLOAT_TO_LE
-gst_flow_get_name
-gst_flow_to_quark
gst_guint64_to_gdouble
gst_gdouble_to_guint64
gst_util_dump_mem
return gst_pad_activate_mode (pad, GST_PAD_MODE_PUSH, TRUE);
}
-#ifndef GST_DISABLE_GST_DEBUG
-static const gchar *
+/**
+ * gst_pad_mode_get_name:
+ * @mode: the pad mode
+ *
+ * Return the name of a pad mode, for use in debug messages mostly.
+ *
+ * Returns: short mnemonic for pad mode @mode
+ */
+const gchar *
gst_pad_mode_get_name (GstPadMode mode)
{
switch (mode) {
}
return "unknown";
}
-#endif
static void
pre_activate (GstPad * pad, GstPadMode new_mode)
gboolean gst_pad_forward (GstPad *pad, GstPadForwardFunction forward,
gpointer user_data);
+const gchar * gst_pad_mode_get_name (GstPadMode mode);
+
G_END_DECLS
#endif /* __GST_PAD_H__ */
parse = GST_BASE_PARSE (parent);
- GST_DEBUG_OBJECT (parse, "sink activate mode %d, %d", mode, active);
+ GST_DEBUG_OBJECT (parse, "sink %sactivate in %s mode",
+ (active) ? "" : "de", gst_pad_mode_get_name (mode));
if (!gst_base_parse_activate (parse, active))
goto activate_failed;
gst_pad_link_full
gst_pad_link_return_get_type
gst_pad_mark_reconfigure
+ gst_pad_mode_get_name
gst_pad_mode_get_type
gst_pad_needs_reconfigure
gst_pad_new