From 1daa53e5549fa687b0d57315105eb450bb9564ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 17 Aug 2011 14:17:18 +0200 Subject: [PATCH] omxaudioenc: Handle inbuf==NULL properly in ::handle_frame() --- omx/gstomxaudioenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/omx/gstomxaudioenc.c b/omx/gstomxaudioenc.c index 10699b581e..bfb8a44a78 100644 --- a/omx/gstomxaudioenc.c +++ b/omx/gstomxaudioenc.c @@ -766,6 +766,9 @@ gst_omx_audio_enc_handle_frame (GstBaseAudioEncoder * encoder, self = GST_OMX_AUDIO_ENC (encoder); + if (inbuf == NULL) + return GST_FLOW_OK; + GST_DEBUG_OBJECT (self, "Handling frame"); timestamp = GST_BUFFER_TIMESTAMP (inbuf);