videoparsers: Update for baseparse API changes

This commit is contained in:
Sebastian Dröge 2012-03-30 12:02:16 +02:00
parent ad1b47c358
commit c63fa9190b
3 changed files with 10 additions and 10 deletions

View file

@ -83,7 +83,7 @@ gst_h263_parse_class_init (GstH263ParseClass * klass)
/* Override BaseParse vfuncs */ /* Override BaseParse vfuncs */
parse_class->start = GST_DEBUG_FUNCPTR (gst_h263_parse_start); parse_class->start = GST_DEBUG_FUNCPTR (gst_h263_parse_start);
parse_class->stop = GST_DEBUG_FUNCPTR (gst_h263_parse_stop); parse_class->stop = GST_DEBUG_FUNCPTR (gst_h263_parse_stop);
parse_class->event = GST_DEBUG_FUNCPTR (gst_h263_parse_sink_event); parse_class->sink_event = GST_DEBUG_FUNCPTR (gst_h263_parse_sink_event);
parse_class->handle_frame = GST_DEBUG_FUNCPTR (gst_h263_parse_handle_frame); parse_class->handle_frame = GST_DEBUG_FUNCPTR (gst_h263_parse_handle_frame);
parse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_h263_parse_get_sink_caps); parse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_h263_parse_get_sink_caps);
} }
@ -142,7 +142,7 @@ gst_h263_parse_sink_event (GstBaseParse * parse, GstEvent * event)
break; break;
} }
return GST_BASE_PARSE_CLASS (parent_class)->event (parse, event); return GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event);
} }
static guint static guint

View file

@ -127,7 +127,7 @@ gst_h264_parse_class_init (GstH264ParseClass * klass)
GST_DEBUG_FUNCPTR (gst_h264_parse_pre_push_frame); GST_DEBUG_FUNCPTR (gst_h264_parse_pre_push_frame);
parse_class->set_sink_caps = GST_DEBUG_FUNCPTR (gst_h264_parse_set_caps); parse_class->set_sink_caps = GST_DEBUG_FUNCPTR (gst_h264_parse_set_caps);
parse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_h264_parse_get_caps); parse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_h264_parse_get_caps);
parse_class->event = GST_DEBUG_FUNCPTR (gst_h264_parse_event); parse_class->sink_event = GST_DEBUG_FUNCPTR (gst_h264_parse_event);
parse_class->src_event = GST_DEBUG_FUNCPTR (gst_h264_parse_src_event); parse_class->src_event = GST_DEBUG_FUNCPTR (gst_h264_parse_src_event);
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
@ -1880,7 +1880,7 @@ gst_h264_parse_event (GstBaseParse * parse, GstEvent * event)
gst_event_unref (event); gst_event_unref (event);
res = TRUE; res = TRUE;
} else { } else {
res = GST_BASE_PARSE_CLASS (parent_class)->event (parse, event); res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event);
break; break;
} }
break; break;
@ -1889,7 +1889,7 @@ gst_h264_parse_event (GstBaseParse * parse, GstEvent * event)
h264parse->dts = GST_CLOCK_TIME_NONE; h264parse->dts = GST_CLOCK_TIME_NONE;
h264parse->ts_trn_nb = GST_CLOCK_TIME_NONE; h264parse->ts_trn_nb = GST_CLOCK_TIME_NONE;
res = GST_BASE_PARSE_CLASS (parent_class)->event (parse, event); res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event);
break; break;
case GST_EVENT_SEGMENT: case GST_EVENT_SEGMENT:
{ {
@ -1902,11 +1902,11 @@ gst_h264_parse_event (GstBaseParse * parse, GstEvent * event)
|| segment->applied_rate != 1.0)) || segment->applied_rate != 1.0))
h264parse->do_ts = FALSE; h264parse->do_ts = FALSE;
res = GST_BASE_PARSE_CLASS (parent_class)->event (parse, event); res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event);
break; break;
} }
default: default:
res = GST_BASE_PARSE_CLASS (parent_class)->event (parse, event); res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event);
break; break;
} }
return res; return res;

View file

@ -171,7 +171,7 @@ gst_mpeg4vparse_class_init (GstMpeg4VParseClass * klass)
GST_DEBUG_FUNCPTR (gst_mpeg4vparse_pre_push_frame); GST_DEBUG_FUNCPTR (gst_mpeg4vparse_pre_push_frame);
parse_class->set_sink_caps = GST_DEBUG_FUNCPTR (gst_mpeg4vparse_set_caps); parse_class->set_sink_caps = GST_DEBUG_FUNCPTR (gst_mpeg4vparse_set_caps);
parse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_mpeg4vparse_get_caps); parse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_mpeg4vparse_get_caps);
parse_class->event = GST_DEBUG_FUNCPTR (gst_mpeg4vparse_event); parse_class->sink_event = GST_DEBUG_FUNCPTR (gst_mpeg4vparse_event);
parse_class->src_event = GST_DEBUG_FUNCPTR (gst_mpeg4vparse_src_event); parse_class->src_event = GST_DEBUG_FUNCPTR (gst_mpeg4vparse_src_event);
} }
@ -837,12 +837,12 @@ gst_mpeg4vparse_event (GstBaseParse * parse, GstEvent * event)
gst_event_unref (event); gst_event_unref (event);
res = TRUE; res = TRUE;
} else { } else {
res = GST_BASE_PARSE_CLASS (parent_class)->event (parse, event); res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event);
} }
break; break;
} }
default: default:
res = GST_BASE_PARSE_CLASS (parent_class)->event (parse, event); res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event);
break; break;
} }
return res; return res;