diff options
Diffstat (limited to 'src/xine-engine')
-rw-r--r-- | src/xine-engine/buffer.h | 3 | ||||
-rw-r--r-- | src/xine-engine/video_decoder.c | 13 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/xine-engine/buffer.h b/src/xine-engine/buffer.h index a959b9e5c..22c3a86ca 100644 --- a/src/xine-engine/buffer.h +++ b/src/xine-engine/buffer.h @@ -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: buffer.h,v 1.17 2001/10/18 18:50:53 guenter Exp $ + * $Id: buffer.h,v 1.18 2001/10/21 12:09:06 jcdutton Exp $ * * * contents: @@ -112,6 +112,7 @@ extern "C" { #define BUF_SPU_BASE 0x04000000 #define BUF_SPU_CLUT 0x04000000 #define BUF_SPU_PACKAGE 0x04010000 +#define BUF_SPU_SUBP_CONTROL 0x04020000 /* demuxer block types: */ diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c index ad06a7bda..853fa6fc4 100644 --- a/src/xine-engine/video_decoder.c +++ b/src/xine-engine/video_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: video_decoder.c,v 1.58 2001/10/20 20:13:08 jcdutton Exp $ + * $Id: video_decoder.c,v 1.59 2001/10/21 12:09:06 jcdutton Exp $ * */ @@ -112,6 +112,17 @@ void *video_decoder_loop (void *this_gen) { profiler_stop_count (prof_spu_decode); break; + case BUF_SPU_SUBP_CONTROL: + profiler_start_count (prof_spu_decode); + + spu_decoder = update_spu_decoder(this, buf->type); + + if (spu_decoder) + spu_decoder->decode_data (spu_decoder, buf); + + profiler_stop_count (prof_spu_decode); + break; + case BUF_CONTROL_SPU_CHANNEL: this->spu_channel = buf->decoder_info[0]; break; |