[483/906] glelements: do not leak parent when using gst_pad_get_parent
This commit is contained in:
parent
a3cc71ae5f
commit
5091066426
@ -202,6 +202,8 @@ gst_gl_filter_src_query (GstPad * pad, GstQuery * query)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_object_unref (parent);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
* <refsect2>
|
* <refsect2>
|
||||||
* <title>Color space conversion</title>
|
* <title>Color space conversion</title>
|
||||||
* <para>
|
* <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.
|
* one frame buffer object instance.
|
||||||
* </para>
|
* </para>
|
||||||
* </refsect2>
|
* </refsect2>
|
||||||
@ -48,14 +48,14 @@
|
|||||||
* |[
|
* |[
|
||||||
* gst-launch -v gltestsrc ! gldownload ! xvimagesink
|
* gst-launch -v gltestsrc ! gldownload ! xvimagesink
|
||||||
* ]| A pipeline to test hardware colorspace conversion.
|
* ]| 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,
|
* 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).
|
* through some fragment shaders and using one framebuffer (FBO extension OpenGL >= 1.4).
|
||||||
* MESA >= 7.1 supports GLSL but it's made in software.
|
* 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
|
* gst-launch -v videotestsrc ! glupload ! gldownload ! "video/x-raw-yuv, format=(fourcc)YUY2" ! glimagesink
|
||||||
* ]| A pipeline to test hardware colorspace conversion
|
* ]| A pipeline to test hardware colorspace conversion
|
||||||
* FBO and GLSL are required.
|
* FBO and GLSL are required.
|
||||||
* </refsect2>
|
* </refsect2>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -236,6 +236,8 @@ gst_gl_download_src_query (GstPad * pad, GstQuery * query)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_object_unref (download);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -323,6 +323,8 @@ gst_gl_test_src_src_query (GstPad * pad, GstQuery * query)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_object_unref (parent);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,6 +255,8 @@ gst_gl_upload_src_query (GstPad * pad, GstQuery * query)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_object_unref (parent);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user