summaryrefslogtreecommitdiff
path: root/subprojects/gst-plugins-base
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2023-04-04 22:03:18 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2023-04-24 12:37:07 +0000
commit791a068c58ddc42b87769ab1c66a2976eb632d4f (patch)
tree15f1b784e6020e553a7a13d504ae2a4ec78f5f90 /subprojects/gst-plugins-base
parent578680a530e574bd8915249146c39661c73b960f (diff)
downloadgstreamer-791a068c58ddc42b87769ab1c66a2976eb632d4f.tar.gz
build: appease clang warning
Clang complains about these variables being (possibly) unitialized, even when they are assigned to NULL or proper value inside the macro. Might as well initialize them to avoid the warning. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4281>
Diffstat (limited to 'subprojects/gst-plugins-base')
-rw-r--r--subprojects/gst-plugins-base/gst-libs/gst/video/video-frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/video-frame.c b/subprojects/gst-plugins-base/gst-libs/gst/video/video-frame.c
index bfb57e47e1..fdd1b89de0 100644
--- a/subprojects/gst-plugins-base/gst-libs/gst/video/video-frame.c
+++ b/subprojects/gst-plugins-base/gst-libs/gst/video/video-frame.c
@@ -39,7 +39,7 @@ video_frame_get_perf_category (void)
static GstDebugCategory *cat = NULL;
if (g_once_init_enter (&cat)) {
- GstDebugCategory *c;
+ GstDebugCategory *c = NULL;
GST_DEBUG_CATEGORY_GET (c, "GST_PERFORMANCE");
g_once_init_leave (&cat, c);