Bug 207 - Don't display zero sized video files.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1618 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
26694a0478
commit
3d10d019a5
|
@ -211,6 +211,8 @@ else
|
|||
{
|
||||
$index = 0;
|
||||
foreach ( $video_files as $file )
|
||||
{
|
||||
if ( filesize( $file ) > 0 )
|
||||
{
|
||||
preg_match( '/^(.+)-((?:r[_\d]+)|(?:F[_\d]+))-((?:s[_\d]+)|(?:S[0-9a-z]+))\.([^.]+)$/', $file, $matches );
|
||||
if ( preg_match( '/^r(.+)$/', $matches[2], $temp_matches ) )
|
||||
|
@ -244,6 +246,7 @@ else
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue