Mercurial > libdvdnav.hg
comparison settings.c @ 388:90ca650854e0 src
Remove all trailing whitespace,
patch by Erik Hovland *erik$hovland dot org%
author | rathann |
---|---|
date | Sat, 06 Sep 2008 21:55:51 +0000 |
parents | 579a3538d284 |
children | d3c273ced49c |
comparison
equal
deleted
inserted
replaced
387:4e28052eb201 | 388:90ca650854e0 |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2000 Rich Wareham <richwareham@users.sourceforge.net> | 2 * Copyright (C) 2000 Rich Wareham <richwareham@users.sourceforge.net> |
3 * | 3 * |
4 * This file is part of libdvdnav, a DVD navigation library. | 4 * This file is part of libdvdnav, a DVD navigation library. |
5 * | 5 * |
6 * libdvdnav is free software; you can redistribute it and/or modify | 6 * libdvdnav is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License as published by | 7 * it under the terms of the GNU General Public License as published by |
8 * the Free Software Foundation; either version 2 of the License, or | 8 * the Free Software Foundation; either version 2 of the License, or |
9 * (at your option) any later version. | 9 * (at your option) any later version. |
10 * | 10 * |
11 * libdvdnav is distributed in the hope that it will be useful, | 11 * libdvdnav is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 * GNU General Public License for more details. | 14 * GNU General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU General Public License | 16 * You should have received a copy of the GNU General Public License |
17 * along with this program; if not, write to the Free Software | 17 * along with this program; if not, write to the Free Software |
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
19 * | 19 * |
20 * $Id$ | 20 * $Id$ |
65 static dvdnav_status_t set_language_register(dvdnav_t *this, char *code, int reg) { | 65 static dvdnav_status_t set_language_register(dvdnav_t *this, char *code, int reg) { |
66 if(!code[0] || !code[1]) { | 66 if(!code[0] || !code[1]) { |
67 printerr("Passed illegal language code."); | 67 printerr("Passed illegal language code."); |
68 return DVDNAV_STATUS_ERR; | 68 return DVDNAV_STATUS_ERR; |
69 } | 69 } |
70 | 70 |
71 pthread_mutex_lock(&this->vm_lock); | 71 pthread_mutex_lock(&this->vm_lock); |
72 this->vm->state.registers.SPRM[reg] = (code[0] << 8) | code[1]; | 72 this->vm->state.registers.SPRM[reg] = (code[0] << 8) | code[1]; |
73 pthread_mutex_unlock(&this->vm_lock); | 73 pthread_mutex_unlock(&this->vm_lock); |
74 return DVDNAV_STATUS_OK; | 74 return DVDNAV_STATUS_OK; |
75 } | 75 } |