diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-09-30 16:41:15 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-09-30 16:41:15 +0000 |
commit | 3070e9bdec6cf379d5ce25bc9022f8539ebb6be5 (patch) | |
tree | 0556e65f811509c4092922638c1e396e1746871b /gst/flacparse/gstbaseparse.h | |
parent | 5bd9d5cd173a93631136a66eeafbbccef54c3d69 (diff) | |
download | gst-plugins-bad-3070e9bdec6cf379d5ce25bc9022f8539ebb6be5.tar.gz gst-plugins-bad-3070e9bdec6cf379d5ce25bc9022f8539ebb6be5.tar.bz2 gst-plugins-bad-3070e9bdec6cf379d5ce25bc9022f8539ebb6be5.zip |
gst/flacparse/gstbaseparse.*: Provide a vfunc for the subclass to decide whether a frame is inside the segment or not...
Original commit message from CVS:
* gst/flacparse/gstbaseparse.c: (gst_base_parse_class_init),
(gst_base_parse_push_buffer),
(gst_base_parse_update_upstream_durations),
(gst_base_parse_convert), (gst_base_parse_frame_in_segment):
* gst/flacparse/gstbaseparse.h:
Provide a vfunc for the subclass to decide whether a frame is inside
the segment or not and add a default implementation.
Fix approximate bitrate calculations.
Diffstat (limited to 'gst/flacparse/gstbaseparse.h')
-rw-r--r-- | gst/flacparse/gstbaseparse.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/flacparse/gstbaseparse.h b/gst/flacparse/gstbaseparse.h index b4b44c26..5ccbf097 100644 --- a/gst/flacparse/gstbaseparse.h +++ b/gst/flacparse/gstbaseparse.h @@ -151,6 +151,8 @@ struct _GstBaseParse { * set the buffer timestamp, duration, caps and possibly * other necessary metadata. This is called with srcpad's * STREAM_LOCK held. + * @frame_in_segment: Optional. Check if the given frame is contained in the + * given segment. * @convert: Optional. * Convert between formats. * @find_frame: Optional. @@ -197,6 +199,10 @@ struct _GstBaseParseClass { GstFlowReturn (*parse_frame) (GstBaseParse *parse, GstBuffer *buffer); + gboolean (*frame_in_segment) (GstBaseParse *parse, + GstBuffer *buffer, + GstSegment *segment); + gboolean (*convert) (GstBaseParse * parse, GstFormat src_format, gint64 src_value, |