- 21 Jan, 2015 6 commits
-
-
Steve Dibb authored
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Steve Dibb authored
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Steve Dibb authored
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Steve Dibb authored
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Steve Dibb authored
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Steve Dibb authored
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
- 03 Jan, 2015 1 commit
-
-
Jean-Baptiste Kempf authored
-
- 03 Dec, 2014 2 commits
-
-
Evgeny Grin authored
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Evgeny Grin authored
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
- 06 Nov, 2014 1 commit
-
-
Andrew Clayton authored
With GCC 4.8.3 on x86_64 Fedora 20 we get the following warnings from src/md5.c src/md5.c: In function 'md5_finish_ctx': src/md5.c:102:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(md5_uint32 *) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3); ^ src/md5.c:103:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(md5_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) | ^ Rather than trying to fix this, Jean-Baptiste Kempf suggested it would be better to replace this old implementation with something newer such as the one used in VLC. So, this is what this does. We take src/misc/md5.c as src/md5.c and include/vlc_md5.h as src/md5.h md5.c had little changed in it, just some #include changes, I also had to remove the restrict keyword from the AddMD5() function definition as this is a C99 thing. This shouldn't really make much difference in this usage. md5.h had the VLC_API macro usage removed and I removed the psz_md5_hash function as it's not used. Finally DVDDiscID() in src/dvd_reader.c was changed to make use of this new implementation. I tested this with the following program /* * gcc -O2 -Wall -o dvddiscid dvddiscid.c -ldvdread */ #include <stdio.h> #include <dvdread/dvd_reader.h> int main(void) { int i; dvd_reader_t *dvd; unsigned char id[16]; dvd = DVDOpen("/dev/sr0"); DVDDiscID(dvd, id); DVDClose(dvd); for (i = 0; i < 16; i++) printf("%.2x", id[i]); printf("\n"); return 0; } and get the same MD5 before and after this change. $ ./dvddiscid a02f30eb3e76e624b766ec0248757901 $ LD_LIBRARY_PATH=/opt/libdvdread/lib ./dvddiscid a02f30eb3e76e624b766ec0248757901 Signed-off-by:
Andrew Clayton <andrew@digital-domain.net> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org> Tested-by:
Steve Dibb <beandog@gentoo.org>
-
- 05 Nov, 2014 2 commits
-
-
Andrew Clayton authored
In libdvdread some functions take parameters that are unused. These functions are for working without the libdvdcss library but have to have the same prototype as the ones for working with it as these are presented as single API. As such we get the following warnings from GCC (4.8.3) src/dvd_input.c: In function 'file_error': src/dvd_input.c:186:37: warning: unused parameter 'dev' [-Wunused-parameter] static char *file_error(dvd_input_t dev) ^ src/dvd_input.c: In function 'file_title': src/dvd_input.c:210:35: warning: unused parameter 'dev' [-Wunused-parameter] static int file_title(dvd_input_t dev, int block) ^ src/dvd_input.c:210:44: warning: unused parameter 'block' [-Wunused-parameter] static int file_title(dvd_input_t dev, int block) ^ src/dvd_input.c: In function 'file_read': src/dvd_input.c:218:69: warning: unused parameter 'flags' [-Wunused-parameter] static int file_read(dvd_input_t dev, void *buffer, int blocks, int flags) ^ The previous commit added a #define set to __attribute__((unused)) when GCC is being used (empty otherwise). This can be used to inform the compiler about such unused parameters and gets rid of those warnings. Signed-off-by:
Andrew Clayton <andrew@digital-domain.net> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Andrew Clayton authored
Some functions in libdvdread take parameters that are unused, e.g file_read() in dvd_input.c. These functions can't be changed to remove the unused parameters as they are public API. GCC provides a __attribute__((unused)) annotation that can be used on function parameters to inform the compiler of such and will squash warnings of the following nature src/dvd_input.c: In function 'file_read': src/dvd_input.c:218:69: warning: unused parameter 'flags' [-Wunused-parameter] static int file_read(dvd_input_t dev, void *buffer, int blocks, int flags) ^ A check is added to configure.ac for the use of GCC and if found it creates an UNUSED #define set to __attribute__((unused)) otherwise it just sets it empty. If compilers on other systems have a similar feature this check can be adjusted to accommodate them. Signed-off-by:
Andrew Clayton <andrew@digital-domain.net> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
- 24 Oct, 2014 7 commits
-
-
Andrew Clayton authored
There were several printf()'s in navPrint_HL_GI() & navPrint_BTNIT() that were printing unsigned int's but were using %d for the format specifier. Signed-off-by:
Andrew Clayton <andrew@digital-domain.net> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Andrew Clayton authored
Signed-off-by:
Andrew Clayton <andrew@digital-domain.net> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Andrew Clayton authored
In ifoPrint_TT_SRPT() there are a couple fprintf()'s that take an unsigned int but %d was used for the format specifier. Signed-off-by:
Andrew Clayton <andrew@digital-domain.net> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Andrew Clayton authored
Signed-off-by:
Andrew Clayton <andrew@digital-domain.net> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Andrew Clayton authored
Signed-off-by:
Andrew Clayton <andrew@digital-domain.net> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Andrew Clayton authored
In DVDReadBlocksPath() there are a couple of fprintf()'s displaying an offset value, this value is an unsigned int but the format strings had %d rather than %u. Signed-off-by:
Andrew Clayton <andrew@digital-domain.net> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
Andrew Clayton authored
The ret variable is only used wihin the while loop. Signed-off-by:
Andrew Clayton <andrew@digital-domain.net> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
- 02 Oct, 2014 1 commit
-
-
Lawrence D'Oliveiro authored
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
- 01 Oct, 2014 2 commits
-
-
Jean-Baptiste Kempf authored
-
Thomas Klausner authored
Signed-off-by:
Thomas Klausner <wiz@NetBSD.org> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
- 01 Sep, 2014 1 commit
-
-
Jean-Baptiste Kempf authored
-
- 30 Aug, 2014 1 commit
-
-
Jean-Baptiste Kempf authored
-
- 28 Aug, 2014 1 commit
-
-
Jean-Baptiste Kempf authored
-
- 22 Aug, 2014 1 commit
-
-
John Stebbins authored
Fixes failure to build if ChangeLog does not exist
-
- 04 Aug, 2014 2 commits
-
-
Jean-Baptiste Kempf authored
-
Jean-Baptiste Kempf authored
-
- 31 Jul, 2014 3 commits
-
-
Jean-Baptiste Kempf authored
-
Diego Biurrun authored
The file is automatically generated with Git, so in a distribution tarball without Git metadata it cannot be regenerated once deleted.
-
Diego Biurrun authored
-
- 30 Jul, 2014 1 commit
-
-
Jean-Baptiste Kempf authored
See Debian #532438
-
- 26 Jul, 2014 1 commit
-
-
Jean-Baptiste Kempf authored
-
- 13 Jul, 2014 1 commit
-
-
Jean-Baptiste Kempf authored
-
- 12 Jul, 2014 1 commit
-
-
Jean-Baptiste Kempf authored
-
- 11 Jun, 2014 1 commit
-
-
Dominik Mierzejewski authored
-
- 05 Jun, 2014 1 commit
-
-
Jean-Baptiste Kempf authored
I will not comment more on the stupidity of bionic...
-
- 20 May, 2014 1 commit
-
-
Thomas Petazzoni authored
NIOS II is a CPU architecture from Altera, which uses 'nios2' as the architecture part of the tuple. Unfortunately, 'nios2' matches the current '*os2*' test done by libdvdread's configure script to detect the OS/2 operating system. This leads to build issues as the build process of libdvdread then tries to use OS/2 specific compiler options, that do not exist in the gcc used for Linux/NIOS2. To fix this, this patch makes the test for OS/2 a little bit more specific: in the case of the OS/2 operating system, the OS part of the tuple contains just 'os2' (confirmed by looking at config.guess and config.sub in the gnuconfig project). So using '*-os2-*' will properly match the OS/2 operating system but not the NIOS II architecture. Signed-off-by:
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
- 16 May, 2014 1 commit
-
-
Steve Dibb authored
Remove redundant check for video_attr. Rearrange checks for attributes to match same order as declarations. Move video unknown string to last displayed, similar to audio output, and use same naming scheme. Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-
- 15 May, 2014 1 commit
-
-
Steve Dibb authored
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
-