diff options
author | Aurélien Zanelli <aurelien.zanelli@parrot.com> | 2016-01-08 15:21:28 +0100 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2016-01-28 10:02:54 -0500 |
commit | 04d59ffd4dea697dc696f06ac800835f7023f564 (patch) | |
tree | c641e3be8294817bd60d15fd65a7dec633ea9014 /gst/rawparse | |
parent | cf25e09b1aabbd7b4b594e718e1cb0a1ecbd1862 (diff) | |
download | gstreamer-plugins-bad-04d59ffd4dea697dc696f06ac800835f7023f564.tar.gz |
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
Diffstat (limited to 'gst/rawparse')
-rw-r--r-- | gst/rawparse/gstrawparse.c | 4 | ||||
-rw-r--r-- | gst/rawparse/gstrawparse.h | 2 | ||||
-rw-r--r-- | 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 03088902c..5a06b1be5 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 f62bb989b..944240bbc 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 80274dee2..4d3f94520 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); |