summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-02-14 21:48:42 +0100
committerJohns <johns98@gmx.net>2012-02-14 21:48:42 +0100
commit9170fcf4850955db50bfbaab86d411a717ec6ce4 (patch)
tree87d0839377e4e6034c09de3a8cef86a718666027
parent919428cb8088f2cc6184d9165575cee54f8c5e30 (diff)
downloadvdr-plugin-softhddevice-9170fcf4850955db50bfbaab86d411a717ec6ce4.tar.gz
vdr-plugin-softhddevice-9170fcf4850955db50bfbaab86d411a717ec6ce4.tar.bz2
Removed stupid gcc warnings.
-rw-r--r--audio.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/audio.c b/audio.c
index f7c208a..aedcf36 100644
--- a/audio.c
+++ b/audio.c
@@ -289,8 +289,8 @@ static int AlsaAddToRingbuffer(const void *samples, int count)
// too many bytes are lost
// FIXME: should skip more, longer skip, but less often?
}
- // Update audio clock
- if (AudioPTS != INT64_C(0x8000000000000000)) {
+ // Update audio clock (stupid gcc developers thinks INT64_C is unsigned)
+ if (AudioPTS != (int64_t) INT64_C(0x8000000000000000)) {
AudioPTS +=
((int64_t) count * 90000) / (AudioSampleRate * AudioChannels *
AudioBytesProSample);
@@ -1276,8 +1276,8 @@ static int OssAddToRingbuffer(const void *samples, int count)
// too many bytes are lost
// FIXME: should skip more, longer skip, but less often?
}
- // Update audio clock
- if (AudioPTS != INT64_C(0x8000000000000000)) {
+ // Update audio clock (stupid gcc developers thinks INT64_C is unsigned)
+ if (AudioPTS != (int64_t) INT64_C(0x8000000000000000)) {
AudioPTS +=
((int64_t) count * 90000) / (AudioSampleRate * AudioChannels *
AudioBytesProSample);
@@ -2125,7 +2125,8 @@ void AudioSetClock(int64_t pts)
*/
int64_t AudioGetClock(void)
{
- if ((uint64_t) AudioPTS != INT64_C(0x8000000000000000)) {
+ // (cast) needed for the evil gcc
+ if (AudioPTS != (int64_t) INT64_C(0x8000000000000000)) {
int64_t delay;
if ((delay = AudioGetDelay())) {