Skip to content

Commit 06ae6d4

Browse files
committed
Update decoder.py
Fix for redundant reloading of file
1 parent 19ed48a commit 06ae6d4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

mediadecoder/decoder.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,6 @@ def load_media(self, mediafile, play_audio=True, target_resolution=None,
289289
fps=audio_fps, nbytes=audio_nbytes,
290290
nchannels=audio_nchannels)
291291
self.clip.audio.nchannels=audio_nchannels
292-
else:
293-
self.clip = VideoFileClip(
294-
mediafile, audio=play_audio,
295-
target_resolution=target_resolution,
296-
audio_fps=audio_fps, audio_nbytes=audio_nbytes)
297292

298293
logger.debug("Loaded {0}".format(mediafile))
299294
return True

0 commit comments

Comments
 (0)