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/gstkateparse.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/gstkateparse.c')
-rw-r--r-- | ext/kate/gstkateparse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/kate/gstkateparse.c b/ext/kate/gstkateparse.c index 89d17514..e9bcd5ae 100644 --- a/ext/kate/gstkateparse.c +++ b/ext/kate/gstkateparse.c @@ -58,8 +58,6 @@ * */ -/* FIXME: post appropriate GST_ELEMENT_ERROR when returning FLOW_ERROR */ - #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -174,7 +172,8 @@ gst_kate_parse_push_headers (GstKateParse * parse) gst_pad_get_negotiated_caps (parse->sinkpad), parse->streamheader); if (G_UNLIKELY (!caps)) { - GST_ERROR_OBJECT (parse, "Failed to set headers on caps"); + GST_ELEMENT_ERROR (parse, STREAM, DECODE, (NULL), + ("Failed to set headers on caps")); return GST_FLOW_ERROR; } @@ -182,8 +181,8 @@ gst_kate_parse_push_headers (GstKateParse * parse) res = gst_pad_set_caps (parse->srcpad, caps); gst_caps_unref (caps); if (G_UNLIKELY (!res)) { - GST_WARNING_OBJECT (parse, "Failed to set pad caps"); - return GST_FLOW_ERROR; + GST_WARNING_OBJECT (parse->srcpad, "Failed to set caps on source pad"); + return GST_FLOW_NOT_NEGOTIATED; } headers = parse->streamheader; @@ -343,7 +342,8 @@ gst_kate_parse_queue_buffer (GstKateParse * parse, GstBuffer * buf) if (granpos >= 0) { ret = gst_kate_parse_drain_queue (parse, granpos); } else { - GST_WARNING_OBJECT (parse, "granulepos < 0 (%lld)", granpos); + GST_ELEMENT_ERROR (parse, STREAM, DECODE, (NULL), + ("Bad granulepos %" G_GINT64_FORMAT, granpos)); ret = GST_FLOW_ERROR; } #endif |