projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01fd3a1
)
assrender: Make static caps actually static
author
Sebastian Dröge
<sebastian@centricular.com>
Sun, 29 Jun 2014 19:05:27 +0000
(21:05 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sun, 29 Jun 2014 19:05:27 +0000
(21:05 +0200)
Otherwise we leak once caps instance on every function call.
ext/assrender/gstassrender.c
patch
|
blob
|
history
diff --git
a/ext/assrender/gstassrender.c
b/ext/assrender/gstassrender.c
index
68462ca
..
369801c
100644
(file)
--- a/
ext/assrender/gstassrender.c
+++ b/
ext/assrender/gstassrender.c
@@
-785,9
+785,9
@@
blit_bgra_premultiplied (GstAssRender * render, ASS_Image * ass_image,
static gboolean
gst_ass_render_can_handle_caps (GstCaps * incaps)
{
+ static GstStaticCaps static_caps = GST_STATIC_CAPS (ASSRENDER_CAPS);
gboolean ret;
GstCaps *caps;
- GstStaticCaps static_caps = GST_STATIC_CAPS (ASSRENDER_CAPS);
caps = gst_static_caps_get (&static_caps);
ret = gst_caps_is_subset (incaps, caps);