mirror of
https://gitlab.freedesktop.org/pulseaudio/pavucontrol.git
synced 2026-05-08 10:08:06 +02:00
initialize maximum buffer length to automatic value (uint32_t) -1 instead of smallest value 0
This commit is contained in:
parent
ecc9ad9b06
commit
67a0cb9e24
1 changed files with 2 additions and 0 deletions
|
|
@ -1093,6 +1093,7 @@ void MainWindow::createMonitorStreamForSource(uint32_t source_idx) {
|
|||
|
||||
memset(&attr, 0, sizeof(attr));
|
||||
attr.fragsize = sizeof(float);
|
||||
attr.maxlength = (uint32_t) -1;
|
||||
|
||||
snprintf(t, sizeof(t), "%u", source_idx);
|
||||
|
||||
|
|
@ -1129,6 +1130,7 @@ void MainWindow::createMonitorStreamForSinkInput(uint32_t sink_input_idx, uint32
|
|||
|
||||
memset(&attr, 0, sizeof(attr));
|
||||
attr.fragsize = sizeof(float);
|
||||
attr.maxlength = (uint32_t) -1;
|
||||
|
||||
snprintf(t, sizeof(t), "%u", monitor_source_idx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue