From d077a3a300c67d20fd29502f0e8ec4374c489c3c Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 24 Mar 2015 10:29:48 +0000 Subject: [PATCH] mpeg2dec: initialize buffer Buffer needs to be null before passing it to gst_buffer_pool_acquire_buffer() CID #1291634 --- ext/mpeg2dec/gstmpeg2dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c index 3f77b5a0a7..4a6a6e45b5 100644 --- a/ext/mpeg2dec/gstmpeg2dec.c +++ b/ext/mpeg2dec/gstmpeg2dec.c @@ -491,7 +491,7 @@ gst_mpeg2dec_crop_buffer (GstMpeg2dec * dec, GstVideoCodecFrame * in_frame, GstVideoInfo *dinfo; GstVideoFrame output_frame; GstFlowReturn ret; - GstBuffer *buffer; + GstBuffer *buffer = NULL; state = gst_video_decoder_get_output_state (GST_VIDEO_DECODER (dec)); info = &state->info;