diff options
author | Thiago Santos <thiago.sousa.santos@collabora.com> | 2014-10-13 22:24:31 -0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-10-24 20:16:51 +0100 |
commit | c7810e2c57e28b715d63f21883ae0e3af806fc71 (patch) | |
tree | 6e64962b13b448cd13f53455d75248edde307ccd | |
parent | 63c092a36dc9f0a1530864102d9487b02fa6db9c (diff) | |
download | gstreamer-plugins-base-c7810e2c57e28b715d63f21883ae0e3af806fc71.tar.gz |
audiodecoder: should post DECODE errors and not ENCODE
Fix error code for audio decoder
-rw-r--r-- | gst-libs/gst/audio/gstaudiodecoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 4f7aea870..df53c0ca9 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -1174,7 +1174,7 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf, /* frame and ts book-keeping */ if (G_UNLIKELY (frames < 0)) { if (G_UNLIKELY (-frames - 1 > priv->frames.length)) { - GST_ELEMENT_WARNING (dec, STREAM, ENCODE, + GST_ELEMENT_WARNING (dec, STREAM, DECODE, ("received more decoded frames %d than provided %d", frames, priv->frames.length), (NULL)); frames = 0; @@ -1183,7 +1183,7 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf, } } else if (G_UNLIKELY (frames > priv->frames.length)) { if (G_LIKELY (!priv->force)) { - GST_ELEMENT_WARNING (dec, STREAM, ENCODE, + GST_ELEMENT_WARNING (dec, STREAM, DECODE, ("received more decoded frames %d than provided %d", frames, priv->frames.length), (NULL)); } @@ -1289,7 +1289,7 @@ exit: /* ERRORS */ wrong_buffer: { - GST_ELEMENT_ERROR (dec, STREAM, ENCODE, (NULL), + GST_ELEMENT_ERROR (dec, STREAM, DECODE, (NULL), ("buffer size %" G_GSIZE_FORMAT " not a multiple of %d", size, ctx->info.bpf)); gst_buffer_unref (buf); |