parent
b8a9da8a4e
commit
7aac741571
|
@ -1515,7 +1515,7 @@ bool GstEnginePipeline::Seek(const qint64 nanosec) {
|
|||
|
||||
void GstEnginePipeline::SetVolume(const uint volume_percent) {
|
||||
|
||||
if (volume_ && volume_percent_ != volume_percent) {
|
||||
if (volume_) {
|
||||
const double volume_internal = static_cast<double>(volume_percent) * 0.01;
|
||||
if (volume_internal != volume_internal_) {
|
||||
volume_internal_ = volume_internal;
|
||||
|
|
Loading…
Reference in New Issue