From 8d7489a73474dcfd85d2adab97f925e93e9aebde Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Tue, 12 Nov 2019 12:31:48 +0200 Subject: [PATCH] rtmp2sink: Add a check that meta isn't NULL before accessing It really can't be NULL, this is just to convince coverity CID 1455553 --- gst/rtmp2/gstrtmp2sink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/rtmp2/gstrtmp2sink.c b/gst/rtmp2/gstrtmp2sink.c index 2ea8b2e384..eb62b17360 100644 --- a/gst/rtmp2/gstrtmp2sink.c +++ b/gst/rtmp2/gstrtmp2sink.c @@ -660,6 +660,7 @@ static void send_message (GstRtmp2Sink * self, GstBuffer * message) { GstRtmpMeta *meta = gst_buffer_get_rtmp_meta (message); + g_return_if_fail (meta != NULL); g_return_if_fail (self->stream_id != 0); meta->mstream = self->stream_id; gst_rtmp_connection_queue_message (self->connection, message);