diff options
author | phintuka <phintuka> | 2010-08-02 07:49:20 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-08-02 07:49:20 +0000 |
commit | 66125804b6e9e0d156d12632a23e085a15e9f55b (patch) | |
tree | 516c823279d29d7f46cc760f0806aa7d3fc9385c | |
parent | 6ec62aae4a353d9e8b2d07e9974dd4930810c447 (diff) | |
download | xineliboutput-66125804b6e9e0d156d12632a23e085a15e9f55b.tar.gz xineliboutput-66125804b6e9e0d156d12632a23e085a15e9f55b.tar.bz2 |
Silence compiler warnings
-rw-r--r-- | xine/BluRay/input_bluray.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xine/BluRay/input_bluray.c b/xine/BluRay/input_bluray.c index 065da0d2..369ca81e 100644 --- a/xine/BluRay/input_bluray.c +++ b/xine/BluRay/input_bluray.c @@ -366,7 +366,7 @@ static off_t bluray_plugin_seek (input_plugin_t *this_gen, off_t offset, int ori offset = bd_tell(this->bdh) + offset; } else if (origin == SEEK_END) { - if (offset < bd_get_title_size(this->bdh)) + if (offset < (off_t)bd_get_title_size(this->bdh)) offset = bd_get_title_size(this->bdh) - offset; else offset = 0; @@ -413,14 +413,14 @@ static int bluray_plugin_get_current_time (input_plugin_t *this_gen) { bluray_input_plugin_t *this = (bluray_input_plugin_t *) this_gen; - return this->bdh ? bd_tell_time(this->bdh) / 90 : -1; + return this->bdh ? (int)(bd_tell_time(this->bdh) / UINT64_C(90)) : -1; } static off_t bluray_plugin_get_length (input_plugin_t *this_gen) { bluray_input_plugin_t *this = (bluray_input_plugin_t *) this_gen; - return this->bdh ? bd_get_title_size(this->bdh) : -1; + return this->bdh ? (off_t)bd_get_title_size(this->bdh) : (off_t)-1; } static uint32_t bluray_plugin_get_blocksize (input_plugin_t *this_gen) |