mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
effectv/streak: remove unnecessary NULL check before g_free()
This commit is contained in:
parent
f58841c24e
commit
29a592f7fa
1 changed files with 1 additions and 2 deletions
|
@ -151,8 +151,7 @@ gst_streaktv_set_info (GstVideoFilter * vfilter, GstCaps * incaps,
|
||||||
width = GST_VIDEO_INFO_WIDTH (in_info);
|
width = GST_VIDEO_INFO_WIDTH (in_info);
|
||||||
height = GST_VIDEO_INFO_HEIGHT (in_info);
|
height = GST_VIDEO_INFO_HEIGHT (in_info);
|
||||||
|
|
||||||
if (filter->planebuffer)
|
g_free (filter->planebuffer);
|
||||||
g_free (filter->planebuffer);
|
|
||||||
|
|
||||||
filter->planebuffer = g_new0 (guint32, width * height * 4 * PLANES);
|
filter->planebuffer = g_new0 (guint32, width * height * 4 * PLANES);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue