diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2010-05-01 01:16:50 +0400 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-05-01 00:04:55 +0200 |
commit | baffaea6e85e704ba0b04e5fc88a6a488e0659c4 (patch) | |
tree | d8713c4765578c587ceeb81f0fd3690999a55c98 /sys/directsound | |
parent | 813e6b5809131381eb423e96cf8e40ba6aa23c28 (diff) | |
download | gstreamer-plugins-bad-baffaea6e85e704ba0b04e5fc88a6a488e0659c4.tar.gz |
Fix warnings in directdrawsink and directsoundsrc
Fixes #617331
Diffstat (limited to 'sys/directsound')
-rw-r--r-- | sys/directsound/gstdirectsoundsrc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/directsound/gstdirectsoundsrc.c b/sys/directsound/gstdirectsoundsrc.c index c6064bb87..54282f664 100644 --- a/sys/directsound/gstdirectsoundsrc.c +++ b/sys/directsound/gstdirectsoundsrc.c @@ -329,7 +329,7 @@ dsound_open: DWORD err = GetLastError (); GST_ELEMENT_ERROR (dsoundsrc, RESOURCE, OPEN_READ, ("Unable to open dsound.dll"), (NULL)); - g_print ("0x%x\n", HRESULT_FROM_WIN32 (err)); + g_print ("0x%lx\n", HRESULT_FROM_WIN32 (err)); return FALSE; } } @@ -420,7 +420,7 @@ gst_directsound_src_prepare (GstAudioSrc * asrc, GstRingBufferSpec * spec) spec->bytes_per_sample = (spec->width / 8) * spec->channels; dsoundsrc->bytes_per_sample = spec->bytes_per_sample; - GST_DEBUG ("latency time: %llu - buffer time: %llu", + GST_DEBUG ("latency time: %" G_GUINT64_FORMAT " - buffer time: %" G_GUINT64_FORMAT, spec->latency_time, spec->buffer_time); /* Buffer-time should be allways more than 2*latency */ @@ -446,7 +446,7 @@ gst_directsound_src_prepare (GstAudioSrc * asrc, GstRingBufferSpec * spec) spec->segtotal = spec->width * (wfx.nAvgBytesPerSec / spec->segsize); - GST_DEBUG ("bytes/sec: %d, buffer size: %d, segsize: %d, segtotal: %d", + GST_DEBUG ("bytes/sec: %lu, buffer size: %d, segsize: %d, segtotal: %d", wfx.nAvgBytesPerSec, dsoundsrc->buffer_size, spec->segsize, spec->segtotal); |