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
2d83c3c2
Commit
2d83c3c2
authored
Aug 14, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed spu announcements for playback controls
parent
b23c2737
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
8 deletions
+30
-8
modules/gui/macosx/CoreInteraction.m
modules/gui/macosx/CoreInteraction.m
+30
-8
No files found.
modules/gui/macosx/CoreInteraction.m
View file @
2d83c3c2
...
...
@@ -161,18 +161,27 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
{
vlc_value_t
val
;
playlist_t
*
p_playlist
=
pl_Get
(
VLCIntf
);
vout_thread_t
*
p_vout
=
getVout
();
var_Get
(
p_playlist
,
"random"
,
&
val
);
val
.
b_bool
=
!
val
.
b_bool
;
var_Set
(
p_playlist
,
"random"
,
val
);
if
(
val
.
b_bool
)
{
//vout_OSDMessage( VLCIntf, SPU_DEFAULT_CHANNEL, "%s", _( "Random On" ) );
if
(
p_vout
)
{
vout_OSDMessage
(
p_vout
,
SPU_DEFAULT_CHANNEL
,
"%s"
,
_
(
"Random On"
)
);
vlc_object_release
(
p_vout
);
}
config_PutInt
(
p_playlist
,
"random"
,
1
);
}
else
{
//vout_OSDMessage( VLCIntf, SPU_DEFAULT_CHANNEL, "%s", _( "Random Off" ) );
if
(
p_vout
)
{
vout_OSDMessage
(
p_vout
,
SPU_DEFAULT_CHANNEL
,
"%s"
,
_
(
"Random Off"
)
);
vlc_object_release
(
p_vout
);
}
config_PutInt
(
p_playlist
,
"random"
,
0
);
}
}
...
...
@@ -186,7 +195,12 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
config_PutInt
(
p_playlist
,
"repeat"
,
NO
);
config_PutInt
(
p_playlist
,
"loop"
,
YES
);
//vout_OSDMessage( VLCIntf, SPU_DEFAULT_CHANNEL, "%s", _( "Repeat All" ) );
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
{
vout_OSDMessage
(
p_vout
,
SPU_DEFAULT_CHANNEL
,
"%s"
,
_
(
"Repeat All"
)
);
vlc_object_release
(
p_vout
);
}
}
-
(
void
)
repeatOne
...
...
@@ -198,7 +212,12 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
config_PutInt
(
p_playlist
,
"repeat"
,
YES
);
config_PutInt
(
p_playlist
,
"loop"
,
NO
);
//vout_OSDMessage( VLCIntf, SPU_DEFAULT_CHANNEL, "%s", _( "Repeat One" ) );
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
{
vout_OSDMessage
(
p_vout
,
SPU_DEFAULT_CHANNEL
,
"%s"
,
_
(
"Repeat One"
)
);
vlc_object_release
(
p_vout
);
}
}
-
(
void
)
repeatOff
...
...
@@ -210,11 +229,14 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
config_PutInt
(
p_playlist
,
"repeat"
,
NO
);
config_PutInt
(
p_playlist
,
"loop"
,
NO
);
//vout_OSDMessage( VLCIntf, SPU_DEFAULT_CHANNEL, "%s", _( "Repeat Off" ) );
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
{
vout_OSDMessage
(
p_vout
,
SPU_DEFAULT_CHANNEL
,
"%s"
,
_
(
"Repeat Off"
)
);
vlc_object_release
(
p_vout
);
}
}
// CAVE: [o_main manageVolumeSlider]
-
(
void
)
volumeUp
{
var_SetInteger
(
VLCIntf
->
p_libvlc
,
"key-action"
,
ACTIONID_VOL_UP
);
...
...
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