mpeg2dec: initialize buffer

Buffer needs to be null before passing it to gst_buffer_pool_acquire_buffer()

CID #1291634
This commit is contained in:
Luis de Bethencourt 2015-03-24 10:29:48 +00:00
parent 35c937f2a4
commit d077a3a300

View file

@ -491,7 +491,7 @@ gst_mpeg2dec_crop_buffer (GstMpeg2dec * dec, GstVideoCodecFrame * in_frame,
GstVideoInfo *dinfo; GstVideoInfo *dinfo;
GstVideoFrame output_frame; GstVideoFrame output_frame;
GstFlowReturn ret; GstFlowReturn ret;
GstBuffer *buffer; GstBuffer *buffer = NULL;
state = gst_video_decoder_get_output_state (GST_VIDEO_DECODER (dec)); state = gst_video_decoder_get_output_state (GST_VIDEO_DECODER (dec));
info = &state->info; info = &state->info;