[gst-cvs] gst-plugins-gl: glupload: par is already handled in fixate_caps function

Julien Isorce cap at kemper.freedesktop.org
Fri Apr 30 02:51:13 PDT 2010


Module: gst-plugins-gl
Branch: master
Commit: 74c38e2e917ca54f3a890427622b9c1ccb2a6ad1
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/commit/?id=74c38e2e917ca54f3a890427622b9c1ccb2a6ad1

Author: Roland Peffer <Roland.Peffer at clixxun.de>
Date:   Fri Apr 30 11:44:26 2010 +0200

glupload: par is already handled in fixate_caps function

Fixes bug #593165

---

 gst/gl/gstglupload.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/gst/gl/gstglupload.c b/gst/gl/gstglupload.c
index 5952c1e..818ef73 100644
--- a/gst/gl/gstglupload.c
+++ b/gst/gl/gstglupload.c
@@ -318,12 +318,10 @@ gst_gl_upload_transform_caps (GstBaseTransform * bt,
   GstStructure *structure = gst_caps_get_structure (caps, 0);
   GstCaps *newcaps = NULL;
   const GValue *framerate_value = NULL;
-  const GValue *par_value = NULL;
 
   GST_DEBUG ("transform caps %" GST_PTR_FORMAT, caps);
 
   framerate_value = gst_structure_get_value (structure, "framerate");
-  par_value = gst_structure_get_value (structure, "pixel-aspect-ratio");
 
   if (direction == GST_PAD_SRC) {
     GstCaps *newothercaps = gst_caps_new_simple ("video/x-raw-rgb", NULL);
@@ -339,11 +337,6 @@ gst_gl_upload_transform_caps (GstBaseTransform * bt,
       "height", GST_TYPE_INT_RANGE, 1, G_MAXINT, NULL);
 
   gst_structure_set_value (structure, "framerate", framerate_value);
-  if (par_value)
-    gst_structure_set_value (structure, "pixel-aspect-ratio", par_value);
-  else
-    gst_structure_set (structure, "pixel-aspect-ratio", GST_TYPE_FRACTION,
-        1, 1, NULL);
 
   gst_caps_merge_structure (newcaps, gst_structure_copy (structure));
 





More information about the Gstreamer-commits mailing list