1.22.0 delete video issue

Support and queries relating to all previous versions of ZoneMinder
Locked
drac
Posts: 1
Joined: Sat Jan 28, 2006 2:06 pm

1.22.0 delete video issue

Post by drac »

hello,

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%">&nbsp;</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
 }
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for taking the time to post this. I have added the correction into 1.22.1.
Phil
Locked