From 3be62315bb43ead81b1978cb47c31fe5f5ba0944 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sun, 6 Apr 2003 23:44:59 +0000 Subject: some more dvd error reporting CVS patchset: 4557 CVS date: 2003/04/06 23:44:59 --- src/input/input_dvd.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index d69d2d8cd..6206a1bc7 100644 --- a/src/input/input_dvd.c +++ b/src/input/input_dvd.c @@ -18,7 +18,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_dvd.c,v 1.146 2003/04/06 13:19:59 mroi Exp $ + * $Id: input_dvd.c,v 1.147 2003/04/06 23:44:59 guenter Exp $ * */ @@ -1290,7 +1290,10 @@ static input_plugin_t *open_plugin (input_class_t *class_gen, xine_stream_t *str this->opened = 0; ret = dvdnav_open(&this->dvdnav, intended_dvd_device); if(ret == DVDNAV_STATUS_ERR) { - printf("input_dvd: Error opening DVD device\n"); + if (this->stream->xine->verbosity >= XINE_VERBOSITY_LOG) + printf("input_dvd: Error opening DVD device\n"); + xine_message (this->stream, XINE_MSG_READ_ERROR, + intended_dvd_device, NULL); return 0; } this->opened=1; @@ -1299,7 +1302,10 @@ static input_plugin_t *open_plugin (input_class_t *class_gen, xine_stream_t *str } else { ret = dvdnav_open(&this->dvdnav, intended_dvd_device); if(ret == DVDNAV_STATUS_ERR) { - printf("input_dvd: Error opening DVD device\n"); + if (this->stream->xine->verbosity >= XINE_VERBOSITY_LOG) + printf("input_dvd: Error opening DVD device\n"); + xine_message (this->stream, XINE_MSG_READ_ERROR, + intended_dvd_device, NULL); return 0; } this->opened=1; @@ -1570,6 +1576,9 @@ static void *init_class (xine_t *xine, void *data) { /* * $Log: input_dvd.c,v $ + * Revision 1.147 2003/04/06 23:44:59 guenter + * some more dvd error reporting + * * Revision 1.146 2003/04/06 13:19:59 mroi * * fix input_time reporting for PG based seeking * (with more than one cell per PG, only the first cell starts at 0; for the others, -- cgit v1.2.3