Skip to content

Commit e5bf6d5

Browse files
committed
Set the volume to 70% (by default) if necessary
1 parent 20b523b commit e5bf6d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DaisyDuck.cxx

+2
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ DaisyDuck::DaisyDuck (void)
168168

169169
/* volume slider */
170170
this->vlc_volume = libvlc_audio_get_volume (this->vlc_mp);
171+
if (this->vlc_volume <= 0)
172+
this->vlc_volume = 70;
171173
this->sliderVolume->setSliderPosition (this->vlc_volume);
172174
this->labelVolume->setText (tr ("Volume %1% :").arg (this->vlc_volume));
173175

0 commit comments

Comments
 (0)