omxaudioenc: Handle inbuf==NULL properly in ::handle_frame()

This commit is contained in:
Sebastian Dröge 2011-08-17 14:17:18 +02:00
parent 0928205ed4
commit 1daa53e554

View file

@ -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);