wasapi: Use signed value for can_frames
The can retrieval function can return negative values (which will be properly handled) Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8286>
This commit is contained in:
parent
aedb587616
commit
0891a0e5eb
@ -616,7 +616,8 @@ gst_wasapi_sink_write (GstAudioSink * asink, gpointer data, guint length)
|
|||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
gint16 *dst = NULL;
|
gint16 *dst = NULL;
|
||||||
DWORD dwWaitResult;
|
DWORD dwWaitResult;
|
||||||
guint can_frames, have_frames, n_frames, write_len, written_len = 0;
|
gint can_frames;
|
||||||
|
guint have_frames, n_frames, write_len, written_len = 0;
|
||||||
HANDLE event_handle[2];
|
HANDLE event_handle[2];
|
||||||
|
|
||||||
event_handle[0] = self->event_handle;
|
event_handle[0] = self->event_handle;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user