gst/gsterror.*: New error category.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gsterror.c (_gst_core_errors_init):
* gst/gsterror.h (GST_CORE_ERROR_MISSING_PLUGIN): New error
category.
This commit is contained in:
Andy Wingo 2005-11-21 18:27:26 +00:00
parent 169841756a
commit 102575f27e
3 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,9 @@
2005-11-21 Andy Wingo <wingo@pobox.com> 2005-11-21 Andy Wingo <wingo@pobox.com>
* gst/gsterror.c (_gst_core_errors_init):
* gst/gsterror.h (GST_CORE_ERROR_MISSING_PLUGIN): New error
category.
* gst/Makefile.am (gst_headers): Add glib-compat.h. * gst/Makefile.am (gst_headers): Add glib-compat.h.
(noinst_HEADERS): noinst the -private. (noinst_HEADERS): noinst the -private.

View file

@ -149,6 +149,8 @@ _gst_core_errors_init (void)
TABLE (t, CORE, CAPS, TABLE (t, CORE, CAPS,
N_("Internal GStreamer error: caps problem." FILE_A_BUG)); N_("Internal GStreamer error: caps problem." FILE_A_BUG));
TABLE (t, CORE, TAG, N_("Internal GStreamer error: tag problem." FILE_A_BUG)); TABLE (t, CORE, TAG, N_("Internal GStreamer error: tag problem." FILE_A_BUG));
TABLE (t, CORE, MISSING_PLUGIN,
N_("Your GStreamer installation is missing a plug-in."));
return t; return t;
} }

View file

@ -50,6 +50,7 @@ G_BEGIN_DECLS
* @GST_CORE_ERROR_SEEK: used for seek-related errors. * @GST_CORE_ERROR_SEEK: used for seek-related errors.
* @GST_CORE_ERROR_CAPS: used for caps-related errors. * @GST_CORE_ERROR_CAPS: used for caps-related errors.
* @GST_CORE_ERROR_TAG: used for negotiation-related errors. * @GST_CORE_ERROR_TAG: used for negotiation-related errors.
* @GST_CORE_ERROR_MISSING_PLUGIN: used if a plugin is missing.
* @GST_CORE_ERROR_NUM_ERRORS: the number of core error types. * @GST_CORE_ERROR_NUM_ERRORS: the number of core error types.
* *
* Core errors are errors inside the core GStreamer library. * Core errors are errors inside the core GStreamer library.
@ -69,6 +70,7 @@ typedef enum
GST_CORE_ERROR_SEEK, GST_CORE_ERROR_SEEK,
GST_CORE_ERROR_CAPS, GST_CORE_ERROR_CAPS,
GST_CORE_ERROR_TAG, GST_CORE_ERROR_TAG,
GST_CORE_ERROR_MISSING_PLUGIN,
GST_CORE_ERROR_NUM_ERRORS GST_CORE_ERROR_NUM_ERRORS
} GstCoreError; } GstCoreError;