summaryrefslogtreecommitdiff
path: root/omx/gstomxaudioenc.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-03-06 17:05:51 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-03-07 13:56:44 +0100
commit60861f3990a735bd0404e91576facae056fb8e80 (patch)
tree8f4442b4f8e379859d69dc9bce87510aeb8a6a81 /omx/gstomxaudioenc.c
parentcc495aeb16eba9e9137184dd32c9f8af7d820522 (diff)
downloadgst-omx-60861f3990a735bd0404e91576facae056fb8e80.tar.gz
omx: Do number of buffers configuration explicitely
Diffstat (limited to 'omx/gstomxaudioenc.c')
-rw-r--r--omx/gstomxaudioenc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/omx/gstomxaudioenc.c b/omx/gstomxaudioenc.c
index 547d0cd..0106fdb 100644
--- a/omx/gstomxaudioenc.c
+++ b/omx/gstomxaudioenc.c
@@ -354,7 +354,7 @@ gst_omx_audio_enc_loop (GstOMXAudioEnc * self)
if (err != OMX_ErrorNone)
goto reconfigure_error;
- err = gst_omx_port_allocate_buffers (port, -1);
+ err = gst_omx_port_allocate_buffers (port);
if (err != OMX_ErrorNone)
goto reconfigure_error;
@@ -733,7 +733,7 @@ gst_omx_audio_enc_set_format (GstAudioEncoder * encoder, GstAudioInfo * info)
if (needs_disable) {
if (gst_omx_port_set_enabled (self->enc_in_port, TRUE) != OMX_ErrorNone)
return FALSE;
- if (gst_omx_port_allocate_buffers (self->enc_in_port, -1) != OMX_ErrorNone)
+ if (gst_omx_port_allocate_buffers (self->enc_in_port) != OMX_ErrorNone)
return FALSE;
if (gst_omx_port_wait_enabled (self->enc_in_port,
5 * GST_SECOND) != OMX_ErrorNone)
@@ -745,7 +745,7 @@ gst_omx_audio_enc_set_format (GstAudioEncoder * encoder, GstAudioInfo * info)
return FALSE;
/* Need to allocate buffers to reach Idle state */
- if (gst_omx_port_allocate_buffers (self->enc_in_port, -1) != OMX_ErrorNone)
+ if (gst_omx_port_allocate_buffers (self->enc_in_port) != OMX_ErrorNone)
return FALSE;
/* And disable output port */
@@ -900,7 +900,7 @@ gst_omx_audio_enc_handle_frame (GstAudioEncoder * encoder, GstBuffer * inbuf)
goto reconfigure_error;
}
- err = gst_omx_port_allocate_buffers (port, -1);
+ err = gst_omx_port_allocate_buffers (port);
if (err != OMX_ErrorNone) {
GST_AUDIO_ENCODER_STREAM_LOCK (self);
goto reconfigure_error;