mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
80b599c81b
commit
8d7489a734
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue