[gst-devel] what do people think about GError?

Bastien Nocera hadess at hadess.net
Tue Apr 9 11:51:38 CEST 2002

On Sun, 2002-04-07 at 02:31, Andy Wingo wrote:
> when should it be used in gst, etc...
> i already have it in gstparse, as that's an obvious application.
> check the glib2 reference if you're not familiar.

Yup, yup, like it a lot. Would be cool to have such a thing for when
adding elements to the pipeline, and setting a state on a pipeline, ie.
better user errors, for example:

- "Couldn't open file:///foo: Permission denied"
- "Couldn't find plugin bar"

GError should be used in all the cases where the user will affect the
user, and the application should use the GError to display a nice error
message, be it a dialog box, or on the CLI.
It shouldn't be used for "programming" errors, like "foo isn't supposed
to be NULL but it is", only for user visible errors.


/Bastien Nocera
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20020409/1a1f5bf8/attachment.pgp>

More information about the gstreamer-devel mailing list