Mercurial > mplayer.hg
annotate libmpdvdkit2/error.c @ 16510:881e136ebf1a
add FreeBSD default cd/dvd devices
author | nexus |
---|---|
date | Sat, 17 Sep 2005 20:53:20 +0000 |
parents | c2ddedd0619e |
children | 954cdf2171f6 |
rev | line source |
---|---|
7027 | 1 /***************************************************************************** |
2 * error.c: error management functions | |
3 ***************************************************************************** | |
4 * Copyright (C) 1998-2002 VideoLAN | |
14860
c2ddedd0619e
Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents:
10720
diff
changeset
|
5 * |
c2ddedd0619e
Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents:
10720
diff
changeset
|
6 * Modified for use with MPlayer, changes contained in libdvdcss_changes.diff. |
c2ddedd0619e
Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents:
10720
diff
changeset
|
7 * detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/ |
7027 | 8 * $Id$ |
9 * | |
10 * Author: Samuel Hocevar <sam@zoy.org> | |
11 * | |
12 * This program is free software; you can redistribute it and/or modify | |
13 * it under the terms of the GNU General Public License as published by | |
14 * the Free Software Foundation; either version 2 of the License, or | |
15 * (at your option) any later version. | |
9333
f0f0f176d298
sync with libdvdcss 1.2.5 (including u8->uint8_t and whitespace cosmetics...)
arpi
parents:
7033
diff
changeset
|
16 * |
7027 | 17 * This program is distributed in the hope that it will be useful, |
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 * GNU General Public License for more details. | |
21 * | |
22 * You should have received a copy of the GNU General Public License | |
23 * along with this program; if not, write to the Free Software | |
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. | |
25 *****************************************************************************/ | |
26 | |
27 #include "config.h" | |
28 | |
29 #include <stdio.h> | |
10720
f23c35ce0d16
synced to libdvdcss 1.2.8 (except the DVDCSS_PATH guessing, we use our
arpi
parents:
9333
diff
changeset
|
30 #include <stdlib.h> |
9333
f0f0f176d298
sync with libdvdcss 1.2.5 (including u8->uint8_t and whitespace cosmetics...)
arpi
parents:
7033
diff
changeset
|
31 #include <limits.h> |
7027 | 32 |
7033 | 33 #include "dvdcss.h" |
7027 | 34 |
35 #include "common.h" | |
36 #include "css.h" | |
37 #include "libdvdcss.h" | |
38 | |
39 /***************************************************************************** | |
40 * Error messages | |
41 *****************************************************************************/ | |
42 void _dvdcss_error( dvdcss_t dvdcss, char *psz_string ) | |
43 { | |
44 if( dvdcss->b_errors ) | |
45 { | |
46 fprintf( stderr, "libdvdcss error: %s\n", psz_string ); | |
47 } | |
48 | |
49 dvdcss->psz_error = psz_string; | |
50 } | |
51 | |
52 /***************************************************************************** | |
53 * Debug messages | |
54 *****************************************************************************/ | |
55 void _dvdcss_debug( dvdcss_t dvdcss, char *psz_string ) | |
56 { | |
57 if( dvdcss->b_debug ) | |
58 { | |
59 fprintf( stderr, "libdvdcss debug: %s\n", psz_string ); | |
60 } | |
61 } | |
62 |