ZM 1.22.0 complained about not finding zm_mpg.php after deleting mpg video file and rendered whole application unusable until browser was restarted. Here's a small patch which fixes the issue:
Code: Select all
--- /home/martin/src/ZoneMinder-1.22.0/web/zm_html_view_video.php 2006-01-17 19:07:13.000000000 +0200
+++ zm_html_view_video.php 2006-01-28 15:50:19.059661704 +0200
@@ -116,13 +116,13 @@
{
preg_match( '/([^\/]+)\.([^.]+)$/', $video_files[$show], $matches );
$name = $matches[1];
- $format = $matches[2];
+ $video_format = $matches[2];
?>
<table align="center" border="0" cellspacing="0" cellpadding="2" width="96%">
<tr><td width="50%"> </td><td width="50%" class="text" align="right"><a href="javascript: closeWindow();"><?= $zmSlangClose ?></a></td></tr>
</table>
<table align="center" border="0" cellspacing="0" cellpadding="2" width="96%">
-<tr><td align="center"><?php outputVideoStream( $video_files[$show], $width, $height, $name, $format ) ?></td></tr>
+<tr><td align="center"><?php outputVideoStream( $video_files[$show], $width, $height, $name, $video_format ) ?></td></tr>
</table>
<?php
}