Commit 4aceb014 authored by Thomas Guillem's avatar Thomas Guillem

qt: enable volume-save on windows for "any"

(cherry picked from commit 0d947a4c)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent e10231cf
...@@ -128,7 +128,15 @@ static struct { ...@@ -128,7 +128,15 @@ static struct {
static int getDefaultAudioVolume(vlc_object_t *obj, const char *aout) static int getDefaultAudioVolume(vlc_object_t *obj, const char *aout)
{ {
if (!strcmp(aout, "") || !strcmp(aout, "any")) if (!strcmp(aout, "") || !strcmp(aout, "any"))
#ifdef _WIN32
/* All Windows aouts, that can be selected automatically, handle volume
* saving. In case of automatic mode, we'll save the last volume for
* every modules. Therefore, all volumes variable we be the same and we
* can use the first one (mmdevice). */
return config_GetFloat(obj, "mmdevice-volume") * 100.f + .5f;
#else
return -1; return -1;
#endif
else else
/* Note: For hysterical raisins, this is sorted by decreasing priority /* Note: For hysterical raisins, this is sorted by decreasing priority
* order (then alphabetical order). */ * order (then alphabetical order). */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment