Index: trunk/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscodeJob.php |
— | — | @@ -190,6 +190,8 @@ |
191 | 191 | ); |
192 | 192 | WebVideoTranscode::invalidatePagesWithFile( $this->title ); |
193 | 193 | } |
| 194 | + //remove temoprary file in any case |
| 195 | + $this->getTargetEncodePath()->purge(); |
194 | 196 | } else { |
195 | 197 | // Update the transcode table with failure time and error |
196 | 198 | $dbw->update( |
Index: trunk/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php |
— | — | @@ -164,6 +164,7 @@ |
165 | 165 | if ( !$tmpFile ) { |
166 | 166 | return False; |
167 | 167 | } |
| 168 | + $tmpFile->bind( $file ); |
168 | 169 | return $tmpFile->getPath(); //path with 0-byte temp file |
169 | 170 | } |
170 | 171 | |