[vlc-commits] mediacodec: lower error level when dequeuing output buffers
Thomas Guillem
git at videolan.org
Mon Mar 6 11:59:51 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Mar 6 11:58:41 2017 +0100| [cdfde5fe72ff34399e5bba33528bd74cc6cd9ce9] | committer: Thomas Guillem
mediacodec: lower error level when dequeuing output buffers
dequeueOutputBuffer() can fail when flushing.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cdfde5fe72ff34399e5bba33528bd74cc6cd9ce9
---
modules/codec/omxil/mediacodec.c | 1 -
modules/codec/omxil/mediacodec_jni.c | 2 +-
modules/codec/omxil/mediacodec_ndk.c | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 87f15d0..3254b62 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -1326,7 +1326,6 @@ static void *OutThread(void *data)
}
else
{
- msg_Err(p_dec, "dequeue_out failed");
vlc_restorecancel(canc);
break;
}
diff --git a/modules/codec/omxil/mediacodec_jni.c b/modules/codec/omxil/mediacodec_jni.c
index 3f20957..426f33c 100644
--- a/modules/codec/omxil/mediacodec_jni.c
+++ b/modules/codec/omxil/mediacodec_jni.c
@@ -755,7 +755,7 @@ static int DequeueOutput(mc_api *api, mtime_t i_timeout)
p_sys->buffer_info, i_timeout);
if (CHECK_EXCEPTION())
{
- msg_Err(api->p_obj, "Exception in MediaCodec.dequeueOutputBuffer");
+ msg_Warn(api->p_obj, "Exception in MediaCodec.dequeueOutputBuffer");
return MC_API_ERROR;
}
if (i_index >= 0)
diff --git a/modules/codec/omxil/mediacodec_ndk.c b/modules/codec/omxil/mediacodec_ndk.c
index 50f0392..8677c74 100644
--- a/modules/codec/omxil/mediacodec_ndk.c
+++ b/modules/codec/omxil/mediacodec_ndk.c
@@ -469,7 +469,7 @@ static int DequeueOutput(mc_api *api, mtime_t i_timeout)
return MC_API_INFO_OUTPUT_FORMAT_CHANGED;
else
{
- msg_Err(api->p_obj, "AMediaCodec.dequeueOutputBuffer failed");
+ msg_Warn(api->p_obj, "AMediaCodec.dequeueOutputBuffer failed");
return MC_API_ERROR;
}
}
More information about the vlc-commits
mailing list