Mercurial > mplayer.hg
annotate libmpdvdkit2/error.c @ 19885:7f9b2b26e905
Replace silly compilation shell scripts by a simple Makefile.
author | diego |
---|---|
date | Mon, 18 Sep 2006 14:27:35 +0000 |
parents | e5d97c5f3c32 |
children | b39fb25bb478 |
rev | line source |
---|---|
7027 | 1 /***************************************************************************** |
2 * error.c: error management functions | |
3 ***************************************************************************** | |
4 * Copyright (C) 1998-2002 VideoLAN | |
16631 | 5 * |
6 * Modified for use with MPlayer, changes contained in libdvdcss_changes.diff. | |
18783 | 7 * detailed changelog at http://svn.mplayerhq.hu/mplayer/trunk/ |
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> |
16714
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16631
diff
changeset
|
31 |
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16631
diff
changeset
|
32 #ifdef HAVE_SYS_PARAM_H |
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16631
diff
changeset
|
33 # include <sys/param.h> |
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16631
diff
changeset
|
34 #endif |
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16631
diff
changeset
|
35 |
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16631
diff
changeset
|
36 #ifdef HAVE_LIMITS_H |
16630 | 37 # include <limits.h> |
16714
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16631
diff
changeset
|
38 #endif |
7027 | 39 |
19820
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
18783
diff
changeset
|
40 #include "dvdcss/dvdcss.h" |
7027 | 41 |
42 #include "common.h" | |
43 #include "css.h" | |
44 #include "libdvdcss.h" | |
45 | |
46 /***************************************************************************** | |
47 * Error messages | |
48 *****************************************************************************/ | |
16630 | 49 void _print_error( dvdcss_t dvdcss, char *psz_string ) |
7027 | 50 { |
51 if( dvdcss->b_errors ) | |
52 { | |
53 fprintf( stderr, "libdvdcss error: %s\n", psz_string ); | |
54 } | |
55 | |
56 dvdcss->psz_error = psz_string; | |
57 } | |
58 | |
59 /***************************************************************************** | |
60 * Debug messages | |
61 *****************************************************************************/ | |
16630 | 62 #if 0 |
63 void _print_debug( dvdcss_t dvdcss, char *psz_string ) | |
7027 | 64 { |
65 if( dvdcss->b_debug ) | |
66 { | |
67 fprintf( stderr, "libdvdcss debug: %s\n", psz_string ); | |
68 } | |
69 } | |
16630 | 70 #endif |
7027 | 71 |