diff --git a/dlls/winegstreamer/wg_format.c b/dlls/winegstreamer/wg_format.c index b22581e7824..ff9238a6a69 100644 --- a/dlls/winegstreamer/wg_format.c +++ b/dlls/winegstreamer/wg_format.c @@ -437,7 +437,8 @@ static GstCaps *wg_format_to_caps_h264(const struct wg_format *format) const char *profile, *level; GstCaps *caps; - caps = gst_caps_new_empty_simple("video/x-h264"); + if (!(caps = gst_caps_new_empty_simple("video/x-h264"))) + return NULL; gst_caps_set_simple(caps, "stream-format", G_TYPE_STRING, "byte-stream", NULL); gst_caps_set_simple(caps, "alignment", G_TYPE_STRING, "au", NULL);