From 04d59ffd4dea697dc696f06ac800835f7023f564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Zanelli?= Date: Fri, 8 Jan 2016 15:21:28 +0100 Subject: [PATCH] rawparse: rename 'set_buffer_flags' vfunc to 'pre_push_buffer' to allow subclass to change other fields of the buffer. https://bugzilla.gnome.org/show_bug.cgi?id=760270 --- gst/rawparse/gstrawparse.c | 4 ++-- gst/rawparse/gstrawparse.h | 2 +- gst/rawparse/gstvideoparse.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gst/rawparse/gstrawparse.c b/gst/rawparse/gstrawparse.c index 03088902c2..5a06b1be56 100644 --- a/gst/rawparse/gstrawparse.c +++ b/gst/rawparse/gstrawparse.c @@ -257,8 +257,8 @@ gst_raw_parse_push_buffer (GstRawParse * rp, GstBuffer * buffer) GST_BUFFER_DURATION (buffer) = GST_CLOCK_TIME_NONE; } - if (rpclass->set_buffer_flags) { - rpclass->set_buffer_flags (rp, buffer); + if (rpclass->pre_push_buffer) { + rpclass->pre_push_buffer (rp, buffer); } if (rp->discont) { diff --git a/gst/rawparse/gstrawparse.h b/gst/rawparse/gstrawparse.h index f62bb989b3..944240bbc9 100644 --- a/gst/rawparse/gstrawparse.h +++ b/gst/rawparse/gstrawparse.h @@ -77,7 +77,7 @@ struct _GstRawParseClass GstElementClass parent_class; GstCaps * (*get_caps) (GstRawParse *rp); - void (*set_buffer_flags) (GstRawParse *rp, GstBuffer *buffer); + void (*pre_push_buffer) (GstRawParse *rp, GstBuffer *buffer); gboolean multiple_frames_per_buffer; }; diff --git a/gst/rawparse/gstvideoparse.c b/gst/rawparse/gstvideoparse.c index 80274dee2f..4d3f945204 100644 --- a/gst/rawparse/gstvideoparse.c +++ b/gst/rawparse/gstvideoparse.c @@ -37,7 +37,7 @@ static void gst_video_parse_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); static GstCaps *gst_video_parse_get_caps (GstRawParse * rp); -static void gst_video_parse_set_buffer_flags (GstRawParse * rp, +static void gst_video_parse_pre_push_buffer (GstRawParse * rp, GstBuffer * buffer); static void gst_video_parse_update_info (GstVideoParse * vp); @@ -72,7 +72,7 @@ gst_video_parse_class_init (GstVideoParseClass * klass) gobject_class->get_property = gst_video_parse_get_property; rp_class->get_caps = gst_video_parse_get_caps; - rp_class->set_buffer_flags = gst_video_parse_set_buffer_flags; + rp_class->pre_push_buffer = gst_video_parse_pre_push_buffer; g_object_class_install_property (gobject_class, PROP_FORMAT, g_param_spec_enum ("format", "Format", "Format of images in raw stream", @@ -242,7 +242,7 @@ gst_video_parse_get_caps (GstRawParse * rp) } static void -gst_video_parse_set_buffer_flags (GstRawParse * rp, GstBuffer * buffer) +gst_video_parse_pre_push_buffer (GstRawParse * rp, GstBuffer * buffer) { GstVideoParse *vp = GST_VIDEO_PARSE (rp);