From 94f9588a28e1974533377884677ca9e82ed59a99 Mon Sep 17 00:00:00 2001 From: Andreas Heinchen Date: Sat, 26 Apr 2003 13:46:47 +0000 Subject: fix multiple lines subtitles' display in OGM container CVS patchset: 4682 CVS date: 2003/04/26 13:46:47 --- ChangeLog | 1 + src/libsputext/xine_decoder_ogm.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 739c45385..fcf27f6b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ xine-lib (1-beta11) + * fix multiple lines subtitles' display in OGM container * fix fastforward bug (slow playback with unused cpu cicles) * fix input_net (tcp) seeking * network input plugins do not freeze when no data is available diff --git a/src/libsputext/xine_decoder_ogm.c b/src/libsputext/xine_decoder_ogm.c index 06f5688d4..fa144b75d 100644 --- a/src/libsputext/xine_decoder_ogm.c +++ b/src/libsputext/xine_decoder_ogm.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_ogm.c,v 1.1 2003/04/16 23:06:38 heinchen Exp $ + * $Id: xine_decoder_ogm.c,v 1.2 2003/04/26 13:46:48 heinchen Exp $ * */ @@ -293,23 +293,23 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) { this->lines=0; - i=0; + while (itext[ this->lines ][i]=0; this->lines=this->lines+1; i=0; - break; - default: + if(this->lines>=SUB_MAX_TEXT) break; + } else { this->text[ this->lines ][i]=str[i]; if (itext[0]); printf("libspuogm: timing %d->%d\n", start, end); -- cgit v1.2.3