From ef5e486fcde5a59e360cf8af42a8f14227f95f5a Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 26 Feb 2009 14:18:54 -0800 Subject: Add interlaced support to videoparse Add a virtual method in rawparse to set buffer flags. This doesn't use API from unreleased -base, since it defines GST_VIDEO_BUFFER_TFF if it's not defined yet. --- gst/rawparse/gstrawparse.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gst/rawparse/gstrawparse.c') diff --git a/gst/rawparse/gstrawparse.c b/gst/rawparse/gstrawparse.c index d7248d4f..d5dae600 100644 --- a/gst/rawparse/gstrawparse.c +++ b/gst/rawparse/gstrawparse.c @@ -213,6 +213,9 @@ gst_raw_parse_push_buffer (GstRawParse * rp, GstBuffer * buffer) { GstFlowReturn ret; gint nframes; + GstRawParseClass *rpclass; + + rpclass = GST_RAW_PARSE_GET_CLASS (rp); nframes = GST_BUFFER_SIZE (buffer) / rp->framesize; @@ -236,6 +239,10 @@ gst_raw_parse_push_buffer (GstRawParse * rp, GstBuffer * buffer) } gst_buffer_set_caps (buffer, GST_PAD_CAPS (rp->srcpad)); + if (rpclass->set_buffer_flags) { + rpclass->set_buffer_flags (rp, buffer); + } + if (rp->discont) { GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_DISCONT); rp->discont = FALSE; -- cgit v1.2.1