Commit 5cdc819b authored by Andrew Clayton's avatar Andrew Clayton Committed by Jean-Baptiste Kempf
Browse files

src/dvd_reader.c: Fix a couple of fprintf format strings



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: default avatarAndrew Clayton <andrew@digital-domain.net>
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent c6bd4eba
...@@ -1183,7 +1183,7 @@ static int DVDReadBlocksPath( const dvd_file_t *dvd_file, unsigned int offset, ...@@ -1183,7 +1183,7 @@ static int DVDReadBlocksPath( const dvd_file_t *dvd_file, unsigned int offset,
if( ( offset + block_count ) <= dvd_file->title_sizes[ i ] ) { if( ( offset + block_count ) <= dvd_file->title_sizes[ i ] ) {
off = dvdinput_seek( dvd_file->title_devs[ i ], (int)offset ); off = dvdinput_seek( dvd_file->title_devs[ i ], (int)offset );
if( off < 0 || off != (int)offset ) { if( off < 0 || off != (int)offset ) {
fprintf( stderr, "libdvdread: Can't seek to block %d\n", fprintf( stderr, "libdvdread: Can't seek to block %u\n",
offset ); offset );
return off < 0 ? off : 0; return off < 0 ? off : 0;
} }
...@@ -1198,7 +1198,7 @@ static int DVDReadBlocksPath( const dvd_file_t *dvd_file, unsigned int offset, ...@@ -1198,7 +1198,7 @@ static int DVDReadBlocksPath( const dvd_file_t *dvd_file, unsigned int offset,
/* Read part 1 */ /* Read part 1 */
off = dvdinput_seek( dvd_file->title_devs[ i ], (int)offset ); off = dvdinput_seek( dvd_file->title_devs[ i ], (int)offset );
if( off < 0 || off != (int)offset ) { if( off < 0 || off != (int)offset ) {
fprintf( stderr, "libdvdread: Can't seek to block %d\n", fprintf( stderr, "libdvdread: Can't seek to block %u\n",
offset ); offset );
return off < 0 ? off : 0; return off < 0 ? off : 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment