diff options
author | Heshan Wanigasooriya <heshanmw@gmail.com> | 2009-06-18 01:50:22 +0000 |
---|---|---|
committer | Heshan Wanigasooriya <heshanmw@gmail.com> | 2009-06-18 01:50:22 +0000 |
commit | a2e889645f2438638b99572b956513745615cbc3 (patch) | |
tree | caad99607d1b5f3380b048562395a27506430fe7 /video.module | |
parent | 557a5b80f3f3ae6b3b7707ef7ecf1396071ab590 (diff) | |
download | video-a2e889645f2438638b99572b956513745615cbc3.tar.gz video-a2e889645f2438638b99572b956513745615cbc3.tar.bz2 |
#493742 by glen201: Replacing video does not remove previously converted video from filesystem
Diffstat (limited to 'video.module')
-rw-r--r-- | video.module | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/video.module b/video.module index dc67235..1a374fa 100644 --- a/video.module +++ b/video.module @@ -798,10 +798,11 @@ function video_update($node) { else { // set the required properties of the video node video_presave($node); - // kjh: make sure to save the encoded_fid - if ($node->new_video_upload_file_fid == 0 && $node->video_encoded_fid) { - $node->serial_data['video_encoded_fid'] = $node->video_encoded_fid; - } + + // GMM: make sure to save the encoded_fid + if (!isset($node->serial_data['video_encoded_fid']) && $node->video_encoded_fid) { + $node->serial_data['video_encoded_fid'] = $node->video_encoded_fid; + } $node->serialized_data = serialize($node->serial_data); //Serialize the data for insertion into the database. |