diff options
author | Vincent Penquerc'h <ogg.k.ogg.k@googlemail.com> | 2009-07-24 21:54:59 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-07-25 12:13:40 +0100 |
commit | aaed93e1265959bb06c4759e68537788c9446681 (patch) | |
tree | 595d14cfb6e37b07f94ddf3eb903bb10739c262f /ext/kate/gstkateutil.c | |
parent | 2641cd9d94433820796c613d17c9a6227c2a8f27 (diff) | |
download | gst-plugins-bad-aaed93e1265959bb06c4759e68537788c9446681.tar.gz gst-plugins-bad-aaed93e1265959bb06c4759e68537788c9446681.tar.bz2 gst-plugins-bad-aaed93e1265959bb06c4759e68537788c9446681.zip |
kate: use GST_ELEMENT_ERROR for error reporting
See #525743.
Diffstat (limited to 'ext/kate/gstkateutil.c')
-rw-r--r-- | ext/kate/gstkateutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/kate/gstkateutil.c b/ext/kate/gstkateutil.c index ca245f99..f99247be 100644 --- a/ext/kate/gstkateutil.c +++ b/ext/kate/gstkateutil.c @@ -17,7 +17,6 @@ * Boston, MA 02111-1307, USA. */ -/* FIXME: post appropriate GST_ELEMENT_ERROR when returning FLOW_ERROR */ /* FIXME: shouldn't all this GstKateDecoderBase stuff really be a base class? */ #ifdef HAVE_CONFIG_H @@ -165,7 +164,8 @@ gst_kate_util_decoder_base_chain_kate_packet (GstKateDecoderBase * decoder, kate_packet_wrap (&kp, GST_BUFFER_SIZE (buf), GST_BUFFER_DATA (buf)); ret = kate_high_decode_packetin (&decoder->k, &kp, ev); if (G_UNLIKELY (ret < 0)) { - GST_WARNING_OBJECT (element, "kate_high_decode_packetin failed (%d)", ret); + GST_ELEMENT_ERROR (element, STREAM, DECODE, (NULL), + ("Failed to decode Kate packet: %d", ret)); return GST_FLOW_ERROR; } else if (G_UNLIKELY (ret > 0)) { GST_DEBUG_OBJECT (element, |