X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=lib%2FHTML5TV%2FSlides.pm;h=3ae8c634e5a741c6020c515a702d8e606b9831f7;hb=66d040e9f2c5776386cb23426c326acc23f87590;hp=dca705345b9eef5d03a438fa0c8ef7784b731386;hpb=5d290160d87f61950c6ecafd28578111ee1a6ece;p=HTML5TV.git diff --git a/lib/HTML5TV/Slides.pm b/lib/HTML5TV/Slides.pm index dca7053..3ae8c63 100644 --- a/lib/HTML5TV/Slides.pm +++ b/lib/HTML5TV/Slides.pm @@ -148,6 +148,9 @@ sub show { my $col_pos = SDL::Color->new( -r => 0x00, -g => 0xff, -b => 0x00 ); foreach my $s ( @subtitles ) { + + next unless defined $s->[0]; + my $s_x = int( $s->[0] * $w_1s + 0.9 ); my $s_w = int( abs( $s->[1] - $s->[0] ) * $w_1s + 0.9 );