From adb4813ca8650d3df7345d218e7f47970e097561 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Fri, 16 Nov 2007 21:32:09 +0000 Subject: report why the dvd couldn't be opened. Patch by Jan Knutar jknutar+nic+fi git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25059 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvdnav.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stream/stream_dvdnav.c') diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index e8f1e86baa..2d1a15237c 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "mp_msg.h" #include "osdep/timer.h" #include "input/input.h" @@ -356,7 +357,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { else if(dvd_device) filename= dvd_device; else filename = DEFAULT_DVD_DEVICE; if(!(priv=new_dvdnav_stream(filename))) { - mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CantOpenDVD,filename); + mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CantOpenDVD,filename, strerror(errno)); return STREAM_UNSUPPORTED; } -- cgit v1.2.3