File mc-extd-video.patch of Package mc

---
 misc/ext.d/video.sh |   17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

Index: mc-4.8.33/misc/ext.d/video.sh
===================================================================
--- mc-4.8.33.orig/misc/ext.d/video.sh
+++ mc-4.8.33/misc/ext.d/video.sh
@@ -15,7 +15,9 @@ do_view_action() {
 
     case "${filetype}" in
     *)
-        if command -v mplayer >/dev/null 2>&1; then
+        if command -v mediainfo >/dev/null 2>&1 ; then
+           mediainfo "${MC_EXT_FILENAME}"
+        elif command -v mplayer >/dev/null 2>&1; then
             mplayer -identify -vo null -ao null -frames 0 "${MC_EXT_FILENAME}" 2>&1 | \
                 sed -n 's/^ID_//p'
         elif command -v mpv_identify.sh >/dev/null 2>&1; then
openSUSE Build Service is sponsored by