Closed (fixed)
Project:
Video
Version:
7.x-2.x-dev
Component:
Video Transcoding
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2012 at 10:59 UTC
Updated:
19 Nov 2012 at 08:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
Jorrit commentedI have no idea as well. It is a decision made by a prior programmer. I'll look into it after 2.4.
Comment #2
osopolarThe old transcoded files won't get deleted, but they are removed from the files tables (file_managed, file_usage) and from video_output table.
I personally prefer delete the old files and add the new ones instead of replacing them.
In Transcoder.inc the function Transcoder::cleanConverted() calls db_delete() for the fields of these tables. IMHO it would be better to call
file_usage_delete() followed by a
file_delete() call.
Patch attached.
Comment #3
Jorrit commentedI have committed your patch with three changes:
1) The last
db_delete()statement should use'original_fid', not'output_fid'.2) Indentation of the lines should be 2 spaces, not 4.
3) If
$output_filesis empty, bail out.