MainBar: Re-check sample count/rate when needed
authorSoeren Apel <soeren@apelpie.net>
Tue, 14 Jul 2015 16:30:22 +0000 (18:30 +0200)
committerSoeren Apel <soeren@apelpie.net>
Sat, 18 Jul 2015 20:44:33 +0000 (22:44 +0200)
pv/toolbars/mainbar.cpp

index 0bf2270259b8f58138da8fb89bf19c605f0b6192..b404b3da45b32666f335fbee88d773c657b0b855 100644 (file)
@@ -493,6 +493,11 @@ void MainBar::commit_sample_count()
                        return;
                }
        }
+
+       // Devices with built-in memory might impose limits on certain
+       // configurations, so let's check what sample rate the driver
+       // lets us use now.
+       update_sample_rate_selector();
 }
 
 void MainBar::commit_sample_rate()
@@ -518,6 +523,11 @@ void MainBar::commit_sample_rate()
                qDebug() << "Failed to configure samplerate.";
                return;
        }
+
+       // Devices with built-in memory might impose limits on certain
+       // configurations, so let's check what sample count the driver
+       // lets us use now.
+       update_sample_count_selector();
 }
 
 void MainBar::on_device_selected()