rtmpsink: Initialize GstMapInfo

Avoids doing a call to unmap with it uninitialized

CID #1302834
This commit is contained in:
Edward Hervey 2015-06-01 13:55:20 +02:00
parent 3477fc422b
commit 86c500a47a

View file

@ -209,7 +209,7 @@ gst_rtmp_sink_render (GstBaseSink * bsink, GstBuffer * buf)
{
GstRTMPSink *sink = GST_RTMP_SINK (bsink);
GstBuffer *reffed_buf = NULL;
GstMapInfo map;
GstMapInfo map = GST_MAP_INFO_INIT;
if (sink->rtmp == NULL) {
/* Do not crash */