diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-05-19 09:08:33 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-05-19 09:08:33 +0200 |
commit | e542177c656664a3872b1abfeed3af866b1f1c9c (patch) | |
tree | bb572363a133b7bd705f23998b0c443fa38f9d29 | |
parent | c2e5dca5f07a32b1910b932bed793a23bd355886 (diff) | |
download | gst-omx-e542177c656664a3872b1abfeed3af866b1f1c9c.tar.gz |
omxvideodec: Make output buffer pointer always initialized
CID 1214605
-rw-r--r-- | omx/gstomxvideodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 079f0a9..53e3db4 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -1303,7 +1303,7 @@ gst_omx_video_dec_loop (GstOMXVideoDec * self) flow_ret = gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame); frame = NULL; } else if (!frame && (buf->omx_buf->nFilledLen > 0 || buf->eglimage)) { - GstBuffer *outbuf; + GstBuffer *outbuf = NULL; /* This sometimes happens at EOS or if the input is not properly framed, * let's handle it gracefully by allocating a new buffer for the current |