diff options
author | Christian Vogler <cvogler@users.sourceforge.net> | 2002-04-27 23:31:33 +0000 |
---|---|---|
committer | Christian Vogler <cvogler@users.sourceforge.net> | 2002-04-27 23:31:33 +0000 |
commit | 8d05f52e853822cd60e09422f86248d6219e86d2 (patch) | |
tree | e9e8a3976041c1096fc793cd6a58c455ac615ada /src/libspucc | |
parent | 4a6395e90d6bb701e8c41dd4b9f7ef0709e1d0b0 (diff) | |
download | xine-lib-8d05f52e853822cd60e09422f86248d6219e86d2.tar.gz xine-lib-8d05f52e853822cd60e09422f86248d6219e86d2.tar.bz2 |
add closed caption buffer type, so the CC decoder is not discarded
immediately after being loaded.
CVS patchset: 1789
CVS date: 2002/04/27 23:31:33
Diffstat (limited to 'src/libspucc')
-rw-r--r-- | src/libspucc/xine_decoder.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libspucc/xine_decoder.c b/src/libspucc/xine_decoder.c index bcfe5ad74..5c097783f 100644 --- a/src/libspucc/xine_decoder.c +++ b/src/libspucc/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.10 2002/04/27 23:00:40 cvogler Exp $ + * $Id: xine_decoder.c,v 1.11 2002/04/27 23:31:33 cvogler Exp $ * * closed caption spu decoder. receive data by events. * @@ -281,9 +281,8 @@ void spucc_notify_frame_change(spucc_decoder_t *this, int width, int height) /*------------------- implementation of spudec interface -------------------*/ static int spudec_can_handle (spu_decoder_t *this_gen, int buf_type) { - /*int type = buf_type & 0xFFFF0000; - return (type == BUF_SPU_TEXT); */ - return 0; + int type = buf_type & 0xFFFF0000; + return (type == BUF_SPU_CC); } |