summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Peffer <Roland.Peffer@clixxun.de>2010-04-30 11:44:26 +0200
committerJulien Isorce <julien.isorce@gmail.com>2010-04-30 11:44:26 +0200
commit74c38e2e917ca54f3a890427622b9c1ccb2a6ad1 (patch)
tree9104ee16cc0a06a784b34f559b26d4980ac7aeed
parentca431dcf3733edc8d1eaf46bc863886d84d73baa (diff)
glupload: par is already handled in fixate_caps function
Fixes bug #593165
-rw-r--r--gst/gl/gstglupload.c7
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));