mirror of
http://mpg123.de/trunk/.git
synced 2025-08-09 08:22:45 +03:00
conplay: rewind to the beginning and correct check to accept last track
git-svn-id: svn://scm.orgis.org/mpg123/trunk@3675 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
@@ -69,7 +69,7 @@ unless(@files)
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($entry < 0 or $entry > $#files or $frame < 0)
|
if($entry < 0 or $entry > @files or $frame < 0)
|
||||||
{
|
{
|
||||||
die "You got bad data in your playlist file (mismatch between current entry and total count, bad frame index). Clean that up.\n";
|
die "You got bad data in your playlist file (mismatch between current entry and total count, bad frame index). Clean that up.\n";
|
||||||
}
|
}
|
||||||
@@ -95,6 +95,11 @@ while(<MPG123>)
|
|||||||
}
|
}
|
||||||
close(MPG123);
|
close(MPG123);
|
||||||
|
|
||||||
|
if($entry > @files)
|
||||||
|
{
|
||||||
|
$entry = 0;
|
||||||
|
$frame = 0;
|
||||||
|
}
|
||||||
print STDERR "Continue point is in track $entry, frame $frame.\n";
|
print STDERR "Continue point is in track $entry, frame $frame.\n";
|
||||||
write_list();
|
write_list();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user