Skip to content

Commit

Permalink
Fixed delete async dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 24, 2020
1 parent 813a0e8 commit d78d51b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ffmpeg-player.el
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ VOLUME of the sound from 0 ~ 100."
(format "(delete-directory %s t)" (shell-quote-argument path)))))

(defun ffmpeg-player--clean-video-images ()
"Clean up all video images."
"Clean up current video images."
(unless (string-empty-p ffmpeg-player--img-dir)
(ffmpeg-player--async-delete-directory ffmpeg-player--img-dir)))

Expand Down Expand Up @@ -567,7 +567,8 @@ Information about first frame timer please see variable `ffmpeg-player--first-fr
"Clean all the data, like images cache."
(interactive)
(dolist (cache-dir ffmpeg-player--img-dir-lst)
(ffmpeg-player--async-delete-directory cache-dir)))
(unless (string-empty-p cache-dir)
(ffmpeg-player--async-delete-directory cache-dir))))

;;;###autoload
(defun ffmpeg-player-video (path)
Expand Down

0 comments on commit d78d51b

Please sign in to comment.