projects
/
platform
/
upstream
/
gst-libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3d930a
)
avaudenc: log error string as well in debug output
author
Tim-Philipp Müller
<tim@centricular.net>
Sun, 2 Dec 2012 12:31:43 +0000
(12:31 +0000)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sun, 2 Dec 2012 12:31:43 +0000
(12:31 +0000)
ext/libav/gstavaudenc.c
patch
|
blob
|
history
diff --git
a/ext/libav/gstavaudenc.c
b/ext/libav/gstavaudenc.c
index
6d01447
..
2a7c43e
100644
(file)
--- a/
ext/libav/gstavaudenc.c
+++ b/
ext/libav/gstavaudenc.c
@@
-381,7
+381,10
@@
gst_ffmpegaudenc_encode_audio (GstFFMpegAudEnc * ffmpegaudenc,
res = avcodec_encode_audio2 (ctx, &pkt, &frame, have_data);
if (res < 0) {
- GST_ERROR_OBJECT (ffmpegaudenc, "Failed to encode buffer: %d", res);
+ char error_str[128] = { 0, };
+
+ av_strerror (res, error_str, sizeof (error_str));
+ GST_ERROR_OBJECT (enc, "Failed to encode buffer: %d - %s", res, error_str);
return GST_FLOW_OK;
}
GST_LOG_OBJECT (ffmpegaudenc, "got output size %d", res);