gst/gsterror.*: Add two new error codes for encrypted content. Fixes #524659.
authorMilosz Derezynski <internalerror@gmail.com>
Wed, 9 Apr 2008 17:34:54 +0000 (17:34 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 9 Apr 2008 17:34:54 +0000 (17:34 +0000)
Original commit message from CVS:
Based on patch by: Milosz Derezynski <internalerror gmail com>
* gst/gsterror.c: (_gst_stream_errors_init):
* gst/gsterror.h:
Add two new error codes for encrypted content. Fixes #524659.
API: GST_STREAM_ERROR_DECRYPT
API: GST_STREAM_ERROR_DECRYPT_NOKEY

ChangeLog
gst/gsterror.c
gst/gsterror.h

index 7797748..8689d17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2008-04-09  Tim-Philipp Müller  <tim at centricular dot net>
 
+       Based on patch by: Milosz Derezynski <internalerror gmail com>
+
+       * gst/gsterror.c: (_gst_stream_errors_init):
+       * gst/gsterror.h:
+         Add two new error codes for encrypted content. Fixes #524659.
+         API: GST_STREAM_ERROR_DECRYPT
+         API: GST_STREAM_ERROR_DECRYPT_NOKEY
+
+2008-04-09  Tim-Philipp Müller  <tim at centricular dot net>
+
        * gst/gstquery.h:
          Fix typo.
 
index a80bdb8..82afb43 100644 (file)
@@ -244,6 +244,11 @@ _gst_stream_errors_init (void)
   TABLE (t, STREAM, DEMUX, N_("Could not demultiplex stream."));
   TABLE (t, STREAM, MUX, N_("Could not multiplex stream."));
   TABLE (t, STREAM, FORMAT, N_("The stream is in the wrong format."));
+  TABLE (t, STREAM, DECRYPT,
+      N_("The stream is encrypted and decryption is not supported."));
+  TABLE (t, STREAM, DECRYPT_NOKEY,
+      N_("The stream is encrypted and can't be decrypted because no suitable"
+          "key has been supplied."));
 
   return t;
 }
index 39d559c..72b5bf4 100644 (file)
@@ -169,6 +169,10 @@ typedef enum
  * @GST_STREAM_ERROR_MUX: used when muxing fails.
  * @GST_STREAM_ERROR_FORMAT: used when the stream is of the wrong format
  * (for example, wrong caps).
+ * @GST_STREAM_ERROR_DECRYPT: used when the stream is encrypted and can't be
+ * decrypted because this is not supported by the element. (Since: 0.10.20)
+ * @GST_STREAM_ERROR_DECRYPT_NOKEY: used when the stream is encrypted and
+ * can't be decrypted because no suitable key is available. (Since: 0.10.20)
  * @GST_STREAM_ERROR_NUM_ERRORS: the number of stream error types.
  *
  * Stream errors are for anything related to the stream being processed:
@@ -188,6 +192,8 @@ typedef enum
   GST_STREAM_ERROR_DEMUX,
   GST_STREAM_ERROR_MUX,
   GST_STREAM_ERROR_FORMAT,
+  GST_STREAM_ERROR_DECRYPT,
+  GST_STREAM_ERROR_DECRYPT_NOKEY,
   GST_STREAM_ERROR_NUM_ERRORS
 } GstStreamError;