Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
8d88a428
Commit
8d88a428
authored
Jul 13, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Make sure the volume slider is activated when vlc starts.
parent
df139149
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
+17
-20
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+17
-20
No files found.
modules/gui/macosx/intf.m
View file @
8d88a428
...
@@ -449,6 +449,7 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -449,6 +449,7 @@ static VLCMain *_o_sharedMainInstance = nil;
var_Create
(
p_intf
,
"intf-change"
,
VLC_VAR_BOOL
);
var_Create
(
p_intf
,
"intf-change"
,
VLC_VAR_BOOL
);
[
self
setSubmenusEnabled
:
FALSE
];
[
self
setSubmenusEnabled
:
FALSE
];
[
o_volumeslider
setEnabled
:
YES
];
[
self
manageVolumeSlider
];
[
self
manageVolumeSlider
];
[
o_window
setDelegate
:
self
];
[
o_window
setDelegate
:
self
];
...
@@ -1286,10 +1287,7 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -1286,10 +1287,7 @@ static VLCMain *_o_sharedMainInstance = nil;
p_intf
->
p_sys
->
b_intf_show
=
false
;
p_intf
->
p_sys
->
b_intf_show
=
false
;
}
}
p_playlist
=
pl_Yield
(
p_intf
);
p_input
=
pl_CurrentInput
(
p_intf
);
p_input
=
vlc_object_find
(
p_playlist
,
VLC_OBJECT_INPUT
,
FIND_CHILD
);
if
(
p_input
&&
vlc_object_alive
(
p_input
)
)
if
(
p_input
&&
vlc_object_alive
(
p_input
)
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
...
@@ -1338,21 +1336,6 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -1338,21 +1336,6 @@ static VLCMain *_o_sharedMainInstance = nil;
[
o_embedded_window
setTime
:
o_time
position
:
f_updated
];
[
o_embedded_window
setTime
:
o_time
position
:
f_updated
];
}
}
if
(
p_intf
->
p_sys
->
b_volume_update
)
{
NSString
*
o_text
;
int
i_volume_step
=
0
;
o_text
=
[
NSString
stringWithFormat
:
_NS
(
"Volume: %d%%"
),
i_lastShownVolume
*
400
/
AOUT_VOLUME_MAX
];
if
(
i_lastShownVolume
!=
-
1
)
[
self
setScrollField
:
o_text
stopAfter
:
1000000
];
i_volume_step
=
config_GetInt
(
p_intf
->
p_libvlc
,
"volume-step"
);
[
o_volumeslider
setFloatValue
:
(
float
)
i_lastShownVolume
/
i_volume_step
];
[
o_volumeslider
setEnabled
:
TRUE
];
[[[
self
getControls
]
getFSPanel
]
setVolumeLevel
:
(
float
)
i_lastShownVolume
/
i_volume_step
];
p_intf
->
p_sys
->
b_mute
=
(
i_lastShownVolume
==
0
);
p_intf
->
p_sys
->
b_volume_update
=
FALSE
;
}
/* Manage Playing status */
/* Manage Playing status */
var_Get
(
p_input
,
"state"
,
&
val
);
var_Get
(
p_input
,
"state"
,
&
val
);
if
(
p_intf
->
p_sys
->
i_play_status
!=
val
.
i_int
)
if
(
p_intf
->
p_sys
->
i_play_status
!=
val
.
i_int
)
...
@@ -1374,7 +1357,21 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -1374,7 +1357,21 @@ static VLCMain *_o_sharedMainInstance = nil;
[
o_embedded_window
playStatusUpdated
:
p_intf
->
p_sys
->
i_play_status
];
[
o_embedded_window
playStatusUpdated
:
p_intf
->
p_sys
->
i_play_status
];
[
self
setSubmenusEnabled
:
FALSE
];
[
self
setSubmenusEnabled
:
FALSE
];
}
}
pl_Release
(
p_intf
);
if
(
p_intf
->
p_sys
->
b_volume_update
)
{
NSString
*
o_text
;
int
i_volume_step
=
0
;
o_text
=
[
NSString
stringWithFormat
:
_NS
(
"Volume: %d%%"
),
i_lastShownVolume
*
400
/
AOUT_VOLUME_MAX
];
if
(
i_lastShownVolume
!=
-
1
)
[
self
setScrollField
:
o_text
stopAfter
:
1000000
];
i_volume_step
=
config_GetInt
(
p_intf
->
p_libvlc
,
"volume-step"
);
[
o_volumeslider
setFloatValue
:
(
float
)
i_lastShownVolume
/
i_volume_step
];
[
o_volumeslider
setEnabled
:
TRUE
];
[[[
self
getControls
]
getFSPanel
]
setVolumeLevel
:
(
float
)
i_lastShownVolume
/
i_volume_step
];
p_intf
->
p_sys
->
b_mute
=
(
i_lastShownVolume
==
0
);
p_intf
->
p_sys
->
b_volume_update
=
FALSE
;
}
end:
end:
[
self
updateMessageArray
];
[
self
updateMessageArray
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment