summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2002-11-20 14:00:34 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2002-11-20 14:00:34 +0000
commitb70d092dedd938355864a589a624ea895f30a1a2 (patch)
tree8f707bbabffb63581f5e020fb59baf04beeecc31
parent50efdec2386677c2e92fb001dc451aaaf1839613 (diff)
downloadxine-lib-b70d092dedd938355864a589a624ea895f30a1a2.tar.gz
xine-lib-b70d092dedd938355864a589a624ea895f30a1a2.tar.bz2
the last patch moved the command parsing too far, forced_display is updated
inside spudec_do_commands, so it has to come before the check for it CVS patchset: 3317 CVS date: 2002/11/20 14:00:34
-rw-r--r--src/libspudec/spu.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libspudec/spu.c b/src/libspudec/spu.c
index 1f189c8f8..ed7c5fb30 100644
--- a/src/libspudec/spu.c
+++ b/src/libspudec/spu.c
@@ -35,7 +35,7 @@
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: spu.c,v 1.55 2002/11/20 13:49:05 mroi Exp $
+ * $Id: spu.c,v 1.56 2002/11/20 14:00:34 mroi Exp $
*
*/
@@ -303,6 +303,12 @@ void spudec_process (spudec_decoder_t *this, uint32_t stream_id) {
#endif
return;
}
+ /* Get do commands to build the event. */
+ spudec_do_commands(&this->state, cur_seq, &this->overlay);
+ /* FIXME: Check for Forced-display or subtitle stream
+ * For subtitles, open event.
+ * For menus, store it for later.
+ */
if ( (this->state.forced_display == 0) && (this->stream->spu_channel & 0x80) ) {
#ifdef LOG_DEBUG
printf ("spu: Dropping SPU channel %d. Only allow forced display SPUs\n", stream_id);
@@ -310,12 +316,6 @@ void spudec_process (spudec_decoder_t *this, uint32_t stream_id) {
return;
}
- /* Get do commands to build the event. */
- spudec_do_commands(&this->state, cur_seq, &this->overlay);
- /* FIXME: Check for Forced-display or subtitle stream
- * For subtitles, open event.
- * For menus, store it for later.
- */
#ifdef LOG_DEBUG
/* spudec_print_overlay( &this->overlay ); */
printf ("spu: forced display:%s\n", this->state.forced_display ? "Yes" : "No" );