From 8a5f26b6a5c627b7652e4d46eccdd9c90e93cbfd Mon Sep 17 00:00:00 2001 From: Andreas Heinchen Date: Sun, 15 Feb 2004 18:52:42 +0000 Subject: ignoring empty spus created by some ogm-muxingtools CVS patchset: 6160 CVS date: 2004/02/15 18:52:42 --- src/libsputext/xine_decoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libsputext/xine_decoder.c b/src/libsputext/xine_decoder.c index ab3693306..7e99e2b33 100644 --- a/src/libsputext/xine_decoder.c +++ b/src/libsputext/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.76 2004/02/03 11:12:18 tmattern Exp $ + * $Id: xine_decoder.c,v 1.77 2004/02/15 18:52:42 heinchen Exp $ * */ @@ -388,6 +388,9 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) { start = *val++; end = *val++; str = (char *)val; + + if (!*str) return; + /* Empty ogm packets (as created by ogmmux) clears out old messages. We already respect the end time. */ this->lines = 0; -- cgit v1.2.3