From patchwork Tue Jan 3 22:02:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 6035 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A47A023F7F for ; Tue, 3 Jan 2012 22:03:00 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8DF05A18058 for ; Tue, 3 Jan 2012 22:03:00 +0000 (UTC) Received: by eaac11 with SMTP id c11so16120253eaa.11 for ; Tue, 03 Jan 2012 14:03:00 -0800 (PST) Received: by 10.205.141.78 with SMTP id jd14mr12073828bkc.107.1325628180295; Tue, 03 Jan 2012 14:03:00 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs352479bkc; Tue, 3 Jan 2012 14:03:00 -0800 (PST) Received: by 10.236.128.207 with SMTP id f55mr69771628yhi.83.1325628178374; Tue, 03 Jan 2012 14:02:58 -0800 (PST) Received: from mail-gx0-f178.google.com (mail-gx0-f178.google.com [209.85.161.178]) by mx.google.com with ESMTPS id c14si22546441anh.105.2012.01.03.14.02.58 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Jan 2012 14:02:58 -0800 (PST) Received-SPF: pass (google.com: domain of robdclark@gmail.com designates 209.85.161.178 as permitted sender) client-ip=209.85.161.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of robdclark@gmail.com designates 209.85.161.178 as permitted sender) smtp.mail=robdclark@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by mail-gx0-f178.google.com with SMTP id q4so11570394ggn.37 for ; Tue, 03 Jan 2012 14:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=FwEykb+PuKTG3JvV/NyzWV5KrO77JRYHkNeWsnDD7As=; b=M2tH90ua0oZyBQOMQH312D+uSLAZX+L2MhSmgcVsx12haXLu+Ow1KaTGUt7AF/rH8I Rgsp3Rz9fwXbTk9OJDU6QvV843p2MpT21/NsIWh6upGqOxCZlfaXazlIpWWeiTikv0QJ qd/+jIDUaagK/ploL+u+36z4Xy+UfLCqyMKrk= Received: by 10.236.46.232 with SMTP id r68mr21450895yhb.80.1325628177949; Tue, 03 Jan 2012 14:02:57 -0800 (PST) Received: from localhost (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id v35sm17661754yhj.14.2012.01.03.14.02.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Jan 2012 14:02:57 -0800 (PST) Sender: Rob Clark From: Rob Clark To: patches@linaro.org Cc: Rob Clark Subject: [PATCH 02/19] videoparsers: set interlaced field in caps for mpeg2 Date: Tue, 3 Jan 2012 16:02:45 -0600 Message-Id: <1325628171-4803-2-git-send-email-rob@ti.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1325628171-4803-1-git-send-email-rob@ti.com> References: <1325628171-4803-1-git-send-email-rob@ti.com> --- See: https://bugzilla.gnome.org/show_bug.cgi?id=667218 gst/videoparsers/gstmpegvideoparse.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) 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);