mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
sys/dshowdecwrapper/gstdshowaudiodec.cpp
Original commit message from CVS: * sys/dshowdecwrapper/gstdshowaudiodec.cpp (AudioFakeSink.DoRenderSample): Fix a couple of signed/unsigned comparison warnings.
This commit is contained in:
parent
b8b5a842c1
commit
34a993ef50
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-09-30 Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
|
||||
|
||||
* sys/dshowdecwrapper/gstdshowaudiodec.cpp
|
||||
(AudioFakeSink.DoRenderSample):
|
||||
Fix a couple of signed/unsigned comparison warnings.
|
||||
|
||||
2008-09-30 Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
|
||||
|
||||
* sys/dshowdecwrapper/gstdshowaudiodec.h (AudioFakeSink.AudioFakeSink):
|
||||
|
|
|
@ -217,14 +217,14 @@ HRESULT AudioFakeSink::DoRenderSample(IMediaSample *pMediaSample)
|
|||
MIN ((unsigned int)size, GST_BUFFER_SIZE (out_buf)));
|
||||
|
||||
/* we have to remove some heading samples */
|
||||
if (clip_start > buf_start) {
|
||||
if ((GstClockTime) clip_start > buf_start) {
|
||||
start_offset = (guint)gst_util_uint64_scale_int (clip_start - buf_start,
|
||||
mDec->rate, GST_SECOND) * mDec->depth / 8 * mDec->channels;
|
||||
}
|
||||
else
|
||||
start_offset = 0;
|
||||
/* we have to remove some trailing samples */
|
||||
if (clip_stop < buf_stop) {
|
||||
if ((GstClockTime) clip_stop < buf_stop) {
|
||||
stop_offset = (guint)gst_util_uint64_scale_int (buf_stop - clip_stop,
|
||||
mDec->rate, GST_SECOND) * mDec->depth / 8 * mDec->channels;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue