Explicitly *do not* handle NEF files via the video media type.

Gstreamer might think it's a good idea, but it isn't.
This commit is contained in:
Christopher Allan Webber 2014-07-17 15:04:03 -05:00
parent 892eed590f
commit 8c311def96

View File

@ -44,7 +44,16 @@ class VideoTranscodingFail(BaseProcessingFail):
general_message = _(u'Video transcoding failed')
EXCLUDED_EXTS = ["nef"]
def sniff_handler(media_file, filename):
name, ext = os.path.splitext(filename)
clean_ext = ext.lower()[1:]
if clean_ext in EXCLUDED_EXTS:
# We don't handle this filetype, though gstreamer might think we can
return None
transcoder = transcoders.VideoTranscoder()
data = transcoder.discover(media_file.name)