summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@gmail.com>2011-12-15 16:18:36 +0100
committerJulien Isorce <julien.isorce@gmail.com>2011-12-15 16:18:36 +0100
commit4f57c8912b4bd8b0ceea747c67896545c7860281 (patch)
treeca6a6bae84e3222e9985439e2d74c3f7848022d3
parent39d1768c66b39235dca0a522f83415e00ecbed52 (diff)
glelements: do not leak parent when using gst_pad_get_parent
-rw-r--r--gst-libs/gst/gl/gstglfilter.c2
-rw-r--r--gst/gl/gstgldownload.c8
-rw-r--r--gst/gl/gstgltestsrc.c2
-rw-r--r--gst/gl/gstglupload.c2
4 files changed, 11 insertions, 3 deletions
diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c
index 683792e..8ea6772 100644
--- a/gst-libs/gst/gl/gstglfilter.c
+++ b/gst-libs/gst/gl/gstglfilter.c
@@ -202,6 +202,8 @@ gst_gl_filter_src_query (GstPad * pad, GstQuery * query)
break;
}
+ gst_object_unref (parent);
+
return res;
}
diff --git a/gst/gl/gstgldownload.c b/gst/gl/gstgldownload.c
index 4d0e512..af43122 100644
--- a/gst/gl/gstgldownload.c
+++ b/gst/gl/gstgldownload.c
@@ -27,7 +27,7 @@
* <refsect2>
* <title>Color space conversion</title>
* <para>
- * When needed, the color space conversion is made in a fragment shader using
+ * When needed, the color space conversion is made in a fragment shader using
* one frame buffer object instance.
* </para>
* </refsect2>
@@ -48,14 +48,14 @@
* |[
* gst-launch -v gltestsrc ! gldownload ! xvimagesink
* ]| A pipeline to test hardware colorspace conversion.
- * Your driver must support GLSL (OpenGL Shading Language needs OpenGL >= 2.1).
+ * Your driver must support GLSL (OpenGL Shading Language needs OpenGL >= 2.1).
* Texture RGB32 is converted to one of the 4 following format YUY2, UYVY, I420, YV12 and AYUV,
* through some fragment shaders and using one framebuffer (FBO extension OpenGL >= 1.4).
* MESA >= 7.1 supports GLSL but it's made in software.
* |[
* gst-launch -v videotestsrc ! glupload ! gldownload ! "video/x-raw-yuv, format=(fourcc)YUY2" ! glimagesink
* ]| A pipeline to test hardware colorspace conversion
- * FBO and GLSL are required.
+ * FBO and GLSL are required.
* </refsect2>
*/
@@ -236,6 +236,8 @@ gst_gl_download_src_query (GstPad * pad, GstQuery * query)
break;
}
+ gst_object_unref (download);
+
return res;
}
diff --git a/gst/gl/gstgltestsrc.c b/gst/gl/gstgltestsrc.c
index 15ea18d..ac07a4f 100644
--- a/gst/gl/gstgltestsrc.c
+++ b/gst/gl/gstgltestsrc.c
@@ -323,6 +323,8 @@ gst_gl_test_src_src_query (GstPad * pad, GstQuery * query)
break;
}
+ gst_object_unref (parent);
+
return res;
}
diff --git a/gst/gl/gstglupload.c b/gst/gl/gstglupload.c
index 531ba25..30cc37e 100644
--- a/gst/gl/gstglupload.c
+++ b/gst/gl/gstglupload.c
@@ -255,6 +255,8 @@ gst_gl_upload_src_query (GstPad * pad, GstQuery * query)
break;
}
+ gst_object_unref (parent);
+
return res;
}