Mercurial > mplayer.hg
annotate libdvdcss/error.c @ 36802:621b61818a0f
configure: add -Zhigh-mem linker flag for OS/2
x264 encoder crashes due to memory allocation failure. This fixes the problem.
author | komh |
---|---|
date | Thu, 20 Feb 2014 13:59:34 +0000 |
parents | 691431d2289e |
children |
rev | line source |
---|---|
20613 | 1 /***************************************************************************** |
2 * error.c: error management functions | |
3 ***************************************************************************** | |
4 * Copyright (C) 1998-2002 VideoLAN | |
5 * | |
27462 | 6 * Author: Sam Hocevar <sam@zoy.org> |
20613 | 7 * |
31098
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
8 * This library is free software; you can redistribute it and/or modify |
20613 | 9 * it under the terms of the GNU General Public License as published by |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
31098
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
13 * This library is distributed in the hope that it will be useful, |
20613 | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
31098
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
18 * You should have received a copy of the GNU General Public License along |
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
19 * with this library; if not, write to the Free Software Foundation, Inc., |
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20613 | 21 *****************************************************************************/ |
22 | |
23 #include "config.h" | |
24 | |
25 #include <stdio.h> | |
26 #include <stdlib.h> | |
27 | |
28 #ifdef HAVE_SYS_PARAM_H | |
29 # include <sys/param.h> | |
30 #endif | |
31 | |
32 #ifdef HAVE_LIMITS_H | |
33 # include <limits.h> | |
34 #endif | |
35 | |
36 #include "dvdcss/dvdcss.h" | |
37 | |
38 #include "common.h" | |
39 #include "css.h" | |
40 #include "libdvdcss.h" | |
41 | |
42 /***************************************************************************** | |
43 * Error messages | |
44 *****************************************************************************/ | |
45 void _print_error( dvdcss_t dvdcss, char *psz_string ) | |
46 { | |
47 if( dvdcss->b_errors ) | |
48 { | |
49 fprintf( stderr, "libdvdcss error: %s\n", psz_string ); | |
50 } | |
51 | |
52 dvdcss->psz_error = psz_string; | |
53 } | |
54 | |
55 /***************************************************************************** | |
56 * Debug messages | |
57 *****************************************************************************/ | |
58 #if 0 | |
59 void _print_debug( dvdcss_t dvdcss, char *psz_string ) | |
60 { | |
61 if( dvdcss->b_debug ) | |
62 { | |
63 fprintf( stderr, "libdvdcss debug: %s\n", psz_string ); | |
64 } | |
65 } | |
66 #endif | |
67 |