diff options
author | Vivia Nikolaidou <vivia@ahiru.eu> | 2019-11-12 12:31:48 +0200 |
---|---|---|
committer | Vivia Nikolaidou <vivia@ahiru.eu> | 2019-11-12 12:36:38 +0200 |
commit | 8d7489a73474dcfd85d2adab97f925e93e9aebde (patch) | |
tree | 3b9484a75188942269ecd5ef7ee3e3dfff616447 /gst/rtmp2 | |
parent | 80b599c81b2e85928ece76d300c2a3075e0f842c (diff) | |
download | gstreamer-plugins-bad-8d7489a73474dcfd85d2adab97f925e93e9aebde.tar.gz |
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
Diffstat (limited to 'gst/rtmp2')
-rw-r--r-- | gst/rtmp2/gstrtmp2sink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtmp2/gstrtmp2sink.c b/gst/rtmp2/gstrtmp2sink.c index 2ea8b2e38..eb62b1736 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); |