mplayer does not return error exit status

Project:Linux software
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Related pages:#89: mplayer
Tags:Exit status, mplayer
Description

Ether when playing a non playable file:
mplayer file.txt
or when playing a non-existing file:
mplayer i-dont-exist.mp4
mplayer does not return 1 or other error status.

e.g.:

$ mplayer movie.mp4
MPlayer 1.2.1-4.9.4 (C) 2000-2016 MPlayer Team
3DNow supported but disabled
3DNowExt supported but disabled

Playing movie.mp4.
File not found: 'movie.mp4'
Failed to open movie.mp4.


Exiting... (End of file)
$ echo $?
0
$ mplayer movie.mp4 || echo "Error"
MPlayer 1.2.1-4.9.4 (C) 2000-2016 MPlayer Team
3DNow supported but disabled
3DNowExt supported but disabled

Playing movie.mp4.
File not found: 'movie.mp4'
Failed to open movie.mp4.


Exiting... (End of file)