stream_file: print strerror() when failing to open a file
commita4fdf0e156db20b154bb9f5f6d4c9e5ab6ef3c23
authorUoti Urpala <uau@mplayer2.org>
Fri, 3 Aug 2012 17:33:46 +0000 (3 20:33 +0300)
committerUoti Urpala <uau@mplayer2.org>
Fri, 3 Aug 2012 17:33:46 +0000 (3 20:33 +0300)
tree2e2fd90143400916102cf651647b1b6a5f17d2bb
parentf5fefa6ff5651b7d0e73c8cad893e3e416f77ec5
stream_file: print strerror() when failing to open a file

stream_file always printed "File not found" if it could not open a
file, even though this could be due to other reasons such as
permission problems. Print strerror() information instead. This
changes the output for "mplayer /etc/shadow" from
File not found: '/etc/shadow'
to
Cannot open file '/etc/shadow': Permission denied
stream/stream_file.c