initialize maximum buffer length to automatic value (uint32_t) -1 instead of smallest value 0

This commit is contained in:
Lennart Poettering 2008-09-09 02:09:44 +03:00
parent ecc9ad9b06
commit 67a0cb9e24
1 changed files with 2 additions and 0 deletions

View File

@ -1093,6 +1093,7 @@ void MainWindow::createMonitorStreamForSource(uint32_t source_idx) {
memset(&attr, 0, sizeof(attr)); memset(&attr, 0, sizeof(attr));
attr.fragsize = sizeof(float); attr.fragsize = sizeof(float);
attr.maxlength = (uint32_t) -1;
snprintf(t, sizeof(t), "%u", source_idx); 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)); memset(&attr, 0, sizeof(attr));
attr.fragsize = sizeof(float); attr.fragsize = sizeof(float);
attr.maxlength = (uint32_t) -1;
snprintf(t, sizeof(t), "%u", monitor_source_idx); snprintf(t, sizeof(t), "%u", monitor_source_idx);