aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/media_types
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-03-04 11:53:04 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-03-04 11:53:04 -0600
commitf51a416778bc71ec373fac1cbfbf7df60815b68d (patch)
tree37bbbc49ebc72e825a1b917f3444b66952ca86de /mediagoblin/media_types
parent55c7bf592c07e560fd38943eba4ed2f538cc4bb4 (diff)
downloadmediagoblin-f51a416778bc71ec373fac1cbfbf7df60815b68d.tar.lz
mediagoblin-f51a416778bc71ec373fac1cbfbf7df60815b68d.tar.xz
mediagoblin-f51a416778bc71ec373fac1cbfbf7df60815b68d.zip
Removing an unnecessary video write
In the case of if we're skipping transcoding, we don't need to copy this file at all! This commit sponsored by Frank Zambrini III. Thanks!
Diffstat (limited to 'mediagoblin/media_types')
-rw-r--r--mediagoblin/media_types/video/processing.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/mediagoblin/media_types/video/processing.py b/mediagoblin/media_types/video/processing.py
index 3da19a08..d6439b78 100644
--- a/mediagoblin/media_types/video/processing.py
+++ b/mediagoblin/media_types/video/processing.py
@@ -25,7 +25,6 @@ from mediagoblin.tools.translate import lazy_pass_to_ugettext as _
from . import transcoders
from .util import skip_transcode
-
_log = logging.getLogger(__name__)
_log.setLevel(logging.DEBUG)
@@ -94,8 +93,6 @@ def process_video(proc_state):
# if we can skip it
if skip_transcode(metadata):
_log.debug('Skipping transcoding')
- # Just push the submitted file to the tmp_dst
- open(tmp_dst.name, 'wb').write(open(queued_filename, 'rb').read())
dst_dimensions = metadata['videowidth'], metadata['videoheight']