diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-08-17 13:37:07 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-08-17 13:37:07 +0000 |
commit | 501df5ca843d7f1304a109a92dd429bcf380b842 (patch) | |
tree | d1167b3a9c85e6f12f612a7702ebd3156127a79c | |
parent | be4c8f8df20c96f96f2ebb845ab66becab9d44b5 (diff) |
error out on unsupported types
Original commit message from CVS:
error out on unsupported types
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/libpng/gstpngdec.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2004-08-17 Thomas Vander Stichele <thomas at apestaart dot org> + + * ext/libpng/gstpngdec.c: + error out on unsupported types + 2004-08-17 Iain <iaingnome@gmail.com> * ext/flac/gstflacenc.c (gst_flacenc_update_quality): Only set the diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c index da5e0e99..f77f0228 100644 --- a/ext/libpng/gstpngdec.c +++ b/ext/libpng/gstpngdec.c @@ -198,7 +198,8 @@ gst_pngdec_src_getcaps (GstPad * pad) case PNG_COLOR_TYPE_PALETTE: case PNG_COLOR_TYPE_GRAY_ALPHA: default: - g_warning ("unsupported colortype"); + GST_ELEMENT_ERROR (pngdec, STREAM, NOT_IMPLEMENTED, (NULL), + ("pngdec does not support grayscale or paletted data yet")); break; } inter = gst_caps_intersect (caps, to_inter); |