throw error (#137588)

Original commit message from CVS:
throw error (#137588)
This commit is contained in:
Thomas Vander Stichele 2004-03-18 12:53:36 +00:00
parent 0ea9f4908e
commit e9cb7a7fed
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-03-18 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcolorspace_chain):
throw error instead of g_critical (#137588)
2004-03-18 Thomas Vander Stichele <thomas at apestaart dot org>
* Makefile.am:

View file

@ -306,7 +306,8 @@ gst_ffmpegcolorspace_chain (GstPad * pad, GstData * data)
g_return_if_fail (GST_IS_FFMPEGCOLORSPACE (space));
if (space->from_pixfmt == PIX_FMT_NB || space->to_pixfmt == PIX_FMT_NB) {
g_critical ("attempting to convert unknown formats");
GST_ELEMENT_ERROR (space, CORE, NOT_IMPLEMENTED, NULL,
("attempting to convert colorspaces between unknown formats"));
gst_buffer_unref (inbuf);
return;
}