diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-04-06 16:13:41 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-04-06 16:15:28 +0300 |
commit | 6d256d9908e292f6c593bf45e69354f6b613cc8b (patch) | |
tree | 04e6ef2f928b52e97ba3dab955b0dc58b8445cf7 /sys/directsound/gstdirectsoundsrc.h | |
parent | 58370ed6cf733380024fad3eb39334d06cfc7534 (diff) | |
download | gstreamer-plugins-bad-6d256d9908e292f6c593bf45e69354f6b613cc8b.tar.gz |
directsoundsrc: Correctly calculate segsize and segtotal
segsize should be based on latency-time, and must be a multiple of the
frame size. segtotal should be based on buffer-time and segsize.
This prevents errors caused by outputting buffers that are not a
multiple of the frame size, and actually makes the buffer-time and
latency-time properties do what they're supposed to do.
Diffstat (limited to 'sys/directsound/gstdirectsoundsrc.h')
-rw-r--r-- | sys/directsound/gstdirectsoundsrc.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/directsound/gstdirectsoundsrc.h b/sys/directsound/gstdirectsoundsrc.h index 9aa225fb3..31218976d 100644 --- a/sys/directsound/gstdirectsoundsrc.h +++ b/sys/directsound/gstdirectsoundsrc.h @@ -86,10 +86,8 @@ struct _GstDirectSoundSrc DWORD notifysize; guint buffer_size; - guint latency_size; guint bytes_per_sample; - guint buffer_time; guint latency_time; HMIXER mixer; |