gst/gsterror.*: New error category.
authorAndy Wingo <wingo@pobox.com>
Mon, 21 Nov 2005 18:27:26 +0000 (18:27 +0000)
committerAndy Wingo <wingo@pobox.com>
Mon, 21 Nov 2005 18:27:26 +0000 (18:27 +0000)
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.

ChangeLog
gst/gsterror.c
gst/gsterror.h

index 9f4b7f3..b8663a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
        (noinst_HEADERS): noinst the -private.
 
index 143f0a3..7b837c3 100644 (file)
@@ -149,6 +149,8 @@ _gst_core_errors_init (void)
   TABLE (t, CORE, CAPS,
       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, MISSING_PLUGIN,
+      N_("Your GStreamer installation is missing a plug-in."));
 
   return t;
 }
index e200c88..b1952d3 100644 (file)
@@ -50,6 +50,7 @@ G_BEGIN_DECLS
  * @GST_CORE_ERROR_SEEK: used for seek-related errors.
  * @GST_CORE_ERROR_CAPS: used for caps-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.
  *
  * Core errors are errors inside the core GStreamer library.
@@ -69,6 +70,7 @@ typedef enum
   GST_CORE_ERROR_SEEK,
   GST_CORE_ERROR_CAPS,
   GST_CORE_ERROR_TAG,
+  GST_CORE_ERROR_MISSING_PLUGIN,
   GST_CORE_ERROR_NUM_ERRORS
 } GstCoreError;