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
This commit is contained in:
Vivia Nikolaidou 2019-11-12 12:31:48 +02:00
parent 80b599c81b
commit 8d7489a734

View file

@ -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);