projects
/
HTML5TV.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
787a4b1
)
don't unlink non-existing video.ogv
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 21 Dec 2009 21:54:37 +0000
(22:54 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 21 Dec 2009 21:54:37 +0000
(22:54 +0100)
bin/mplayer.pl
patch
|
blob
|
history
diff --git
a/bin/mplayer.pl
b/bin/mplayer.pl
index
806820d
..
160769f
100755
(executable)
--- a/
bin/mplayer.pl
+++ b/
bin/mplayer.pl
@@
-35,7
+35,7
@@
if ( ! $movie && -e 'media/_editing' ) {
} elsif ( -f $movie && $movie =~ m{\.og[vg]\b}i ) {
my $movie_master = $movie;
$movie = base_dir($movie) . '/video.ogv';
- unlink $movie;
+ unlink $movie
if -e $movie
;
symlink base_name($movie_master), $movie;
warn "symlink video.ogv -> $movie_master";
} else {