summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-03-24 10:29:48 +0000
committerLuis de Bethencourt <luis.bg@samsung.com>2015-03-24 10:29:52 +0000
commitd077a3a300c67d20fd29502f0e8ec4374c489c3c (patch)
treec90a72dce6bb4f5f42a842bac401cfd20c2e9191
parent35c937f2a45e23762bbfb43ce3378d4d05f48d25 (diff)
mpeg2dec: initialize buffer
Buffer needs to be null before passing it to gst_buffer_pool_acquire_buffer() CID #1291634
-rw-r--r--ext/mpeg2dec/gstmpeg2dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c
index 3f77b5a0..4a6a6e45 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;