mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
Ticket #4045: clean up in video.sh handler.
RealPlayer is a proprietary application which can't be installed in most distros and has long been abandoned. gtv hasn't been developed since 2003. xanim barely plays anything. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
40fe047be0
commit
9bb351508a
@ -28,18 +28,22 @@ do_view_action() {
|
||||
do_open_action() {
|
||||
filetype=$1
|
||||
|
||||
if mpv >/dev/null 2>&1; then
|
||||
PLAYER=mpv
|
||||
elif mplayer >/dev/null 2>&1; then
|
||||
PLAYER=mplayer
|
||||
else
|
||||
echo "Please install either mplayer or mpv to play this file"
|
||||
return
|
||||
fi
|
||||
|
||||
case "${filetype}" in
|
||||
ram)
|
||||
(realplay "${MC_EXT_FILENAME}" >/dev/null 2>&1 &)
|
||||
;;
|
||||
*)
|
||||
if [ -n "$DISPLAY" ]; then
|
||||
(mplayer "${MC_EXT_FILENAME}" >/dev/null 2>&1 &)
|
||||
($PLAYER "${MC_EXT_FILENAME}" >/dev/null 2>&1 &)
|
||||
else
|
||||
mplayer -vo null "${MC_EXT_FILENAME}"
|
||||
$PLAYER -vo null "${MC_EXT_FILENAME}"
|
||||
fi
|
||||
#(gtv "${MC_EXT_FILENAME}" >/dev/null 2>&1 &)
|
||||
#(xanim "${MC_EXT_FILENAME}" >/dev/null 2>&1 &)
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user