diff options
author | Heshan <heshan@heidisoft.com> | 2011-05-04 17:16:42 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-05-04 17:16:42 +0530 |
commit | aa5c9b48cfa5674f534acab2cdaab685e9e116ee (patch) | |
tree | e4e708d3e796f875ce7ebe3b5af7bcfc72f6bd4b /modules/video_zencoder/transcoders | |
parent | d0d4b273d990ec3869a09e2312a465d357d42d13 (diff) | |
download | video-aa5c9b48cfa5674f534acab2cdaab685e9e116ee.tar.gz video-aa5c9b48cfa5674f534acab2cdaab685e9e116ee.tar.bz2 |
Run through the coder module and review the code and documentation of the module code.
Diffstat (limited to 'modules/video_zencoder/transcoders')
-rw-r--r-- | modules/video_zencoder/transcoders/video_zencoder.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/video_zencoder/transcoders/video_zencoder.inc b/modules/video_zencoder/transcoders/video_zencoder.inc index e629155..eb93fba 100644 --- a/modules/video_zencoder/transcoders/video_zencoder.inc +++ b/modules/video_zencoder/transcoders/video_zencoder.inc @@ -100,7 +100,8 @@ class video_zencoder implements transcoder_interface { if ($this->update($video)) { watchdog('zencoder', t('Successfully created trancoding job on !jobid.', array('!jobid' => $video->jobid)), array(), WATCHDOG_INFO); } - } else { + } + else { watchdog('zencoder', 'Failed to queus our file to Zencoder.', array(), WATCHDOG_ERROR); $this->change_status($video->vid, VIDEO_RENDERING_FAILED); return FALSE; @@ -168,7 +169,8 @@ class video_zencoder implements transcoder_interface { '#title' => t('Agree Zencoder !link.', array('!link' => l(t('Terms and Conditions'), 'http://zencoder.com/terms', array('attributes' => array('target' => '_blank'))))), '#default_value' => variable_get('agree_terms_zencoder', TRUE), ); - } else { + } + else { // Zencoder API is exists $form['zencoder_info'] = array( '#type' => 'fieldset', @@ -237,7 +239,7 @@ class video_zencoder implements transcoder_interface { $user = new stdClass; $user->email = $email; $result = $zc->create_user($user); - if ($result !== true) + if ($result !== TRUE) form_set_error('zencoder_username', $result); } } |