From caff4eb9a6e6999c5adb577930ea73659041944b Mon Sep 17 00:00:00 2001 From: Milosz Derezynski Date: Wed, 9 Apr 2008 17:34:54 +0000 Subject: [PATCH] gst/gsterror.*: Add two new error codes for encrypted content. Fixes #524659. Original commit message from CVS: Based on patch by: Milosz Derezynski * 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 | 10 ++++++++++ gst/gsterror.c | 5 +++++ gst/gsterror.h | 6 ++++++ 3 files changed, 21 insertions(+) diff --git a/ChangeLog b/ChangeLog index 779774813a..8689d1732c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-04-09 Tim-Philipp Müller + + Based on patch by: Milosz Derezynski + + * 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 * gst/gstquery.h: diff --git a/gst/gsterror.c b/gst/gsterror.c index a80bdb8535..82afb43b32 100644 --- a/gst/gsterror.c +++ b/gst/gsterror.c @@ -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; } diff --git a/gst/gsterror.h b/gst/gsterror.h index 39d559c2f9..72b5bf4d17 100644 --- a/gst/gsterror.h +++ b/gst/gsterror.h @@ -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;