summaryrefslogtreecommitdiff
path: root/src/xine-engine/xine.c
diff options
context:
space:
mode:
authorRich J Wareham <richwareham@users.sourceforge.net>2001-06-18 15:43:00 +0000
committerRich J Wareham <richwareham@users.sourceforge.net>2001-06-18 15:43:00 +0000
commita2c0482e17a5d1d0ea99d06b81e94c0e7b5cb4e2 (patch)
treec064d151203dd381e7606b570e8910cce018d449 /src/xine-engine/xine.c
parent7e7483472eb410396ff7890577ac49bce9afab7a (diff)
downloadxine-lib-a2c0482e17a5d1d0ea99d06b81e94c0e7b5cb4e2.tar.gz
xine-lib-a2c0482e17a5d1d0ea99d06b81e94c0e7b5cb4e2.tar.bz2
Added very primitive overlay capacity (white line now appears if subtitles are enabled.)
CVS patchset: 210 CVS date: 2001/06/18 15:43:00
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r--src/xine-engine/xine.c26
1 files changed, 8 insertions, 18 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c
index 142a29452..d2aef0dc4 100644
--- a/src/xine-engine/xine.c
+++ b/src/xine-engine/xine.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.c,v 1.27 2001/06/18 09:39:05 richwareham Exp $
+ * $Id: xine.c,v 1.28 2001/06/18 15:43:01 richwareham Exp $
*
* top-level xine functions
*
@@ -219,17 +219,6 @@ static void xine_play_internal (xine_t *this, char *mrl,
this->cur_demuxer_plugin->get_identifier());
/*
- * Init SPU decoder with colour lookup table.
- */
-
- /* FIXME
- if(this->cur_input_plugin->get_clut)
- spudec_init(this->cur_input_plugin->get_clut());
- else
- spudec_init(NULL);
- */
-
- /*
* metronom
*/
@@ -417,12 +406,18 @@ xine_t *xine_init (vo_driver_t *vo,
this->cur_input_pos = 0;
/*
+ * init SPU decoder (must be done before video decoder
+ * so that this->spu_decoder is valid).
+ */
+ spu_decoder_init (this);
+
+ /*
* init and start decoder threads
*/
load_decoder_plugins (this, config, DECODER_PLUGIN_IFACE_VERSION);
- this->video_out = vo_new_instance (vo, this->metronom);
+ this->video_out = vo_new_instance (vo, this->metronom, this->spu_decoder);
video_decoder_init (this);
if(ao) {
@@ -431,11 +426,6 @@ xine_t *xine_init (vo_driver_t *vo,
}
audio_decoder_init (this);
- /*
- * init SPU decoder
- */
- spu_decoder_init (this);
-
return this;
}