baseparse: Rename ::event() to ::sink_event() for consistency

This commit is contained in:
Sebastian Dröge 2012-03-30 11:58:20 +02:00
parent 00feec6068
commit eadebb172d
2 changed files with 5 additions and 5 deletions

View file

@ -528,7 +528,7 @@ gst_base_parse_class_init (GstBaseParseClass * klass)
#endif
/* Default handlers */
klass->event = gst_base_parse_sink_eventfunc;
klass->sink_event = gst_base_parse_sink_eventfunc;
klass->src_event = gst_base_parse_src_eventfunc;
klass->convert = gst_base_parse_convert_default;
@ -888,8 +888,8 @@ gst_base_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
/* We've not posted bitrate tags yet - do so now */
gst_base_parse_post_bitrates (parse, TRUE, TRUE, TRUE);
if (bclass->event)
ret = bclass->event (parse, event);
if (bclass->sink_event)
ret = bclass->sink_event (parse, event);
else {
gst_event_unref (event);
ret = FALSE;

View file

@ -210,7 +210,7 @@ struct _GstBaseParse {
* if desired.
* @convert: Optional.
* Convert between formats.
* @event: Optional.
* @sink_event: Optional.
* Event handler on the sink pad. This function should chain
* up to the parent implementation to let the default handler
* run.
@ -258,7 +258,7 @@ struct _GstBaseParseClass {
GstFormat dest_format,
gint64 * dest_value);
gboolean (*event) (GstBaseParse * parse,
gboolean (*sink_event) (GstBaseParse * parse,
GstEvent * event);
gboolean (*src_event) (GstBaseParse * parse,