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:
Artem S. Tashkinov 2020-01-01 14:54:52 +00:00 committed by Andrew Borodin
parent 40fe047be0
commit 9bb351508a

View File

@ -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
}