diff mbox

[02/19] videoparsers: set interlaced field in caps for mpeg2

Message ID 1325628171-4803-2-git-send-email-rob@ti.com
State New
Headers show

Commit Message

Rob Clark Jan. 3, 2012, 10:02 p.m. UTC
---
See: https://bugzilla.gnome.org/show_bug.cgi?id=667218

 gst/videoparsers/gstmpegvideoparse.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c
index 458f699..eefbeab 100644
--- a/gst/videoparsers/gstmpegvideoparse.c
+++ b/gst/videoparsers/gstmpegvideoparse.c
@@ -598,6 +598,9 @@  gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse)
       gst_caps_set_simple (caps, "level", G_TYPE_STRING, level, NULL);
     else
       GST_DEBUG_OBJECT (mpvparse, "Invalid level - %u", level_c);
+
+    gst_caps_set_simple (caps, "interlaced",
+        G_TYPE_BOOLEAN, !mpvparse->params.progressive, NULL);
   }
 
   gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (mpvparse), caps);