summaryrefslogtreecommitdiffstats
path: root/gst/rawparse/gstrawparse.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2009-02-26 14:18:54 -0800
committerDavid Schleef <ds@schleef.org>2009-04-21 18:55:05 -0700
commitef5e486fcde5a59e360cf8af42a8f14227f95f5a (patch)
tree32553bf26424eed18f1218cedd6ddd8dfd75bd81 /gst/rawparse/gstrawparse.c
parent931c59a4b48e9ad7485f958c11e65e3bb4780e24 (diff)
downloadgst-plugins-bad-ef5e486fcde5a59e360cf8af42a8f14227f95f5a.tar.gz
gst-plugins-bad-ef5e486fcde5a59e360cf8af42a8f14227f95f5a.tar.bz2
gst-plugins-bad-ef5e486fcde5a59e360cf8af42a8f14227f95f5a.zip
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.
Diffstat (limited to 'gst/rawparse/gstrawparse.c')
-rw-r--r--gst/rawparse/gstrawparse.c7
1 files changed, 7 insertions, 0 deletions
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;