Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
0c4c7f06
Commit
0c4c7f06
authored
Jan 06, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed interface crash on quit
fixes #5779
parent
52eae1b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
modules/gui/macosx/CoreInteraction.m
modules/gui/macosx/CoreInteraction.m
+15
-3
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-1
No files found.
modules/gui/macosx/CoreInteraction.m
View file @
0c4c7f06
...
...
@@ -135,10 +135,22 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
-
(
int
)
playbackRate
{
playlist_t
*
p_playlist
=
pl_Get
(
VLCIntf
);
float
f_rate
;
input_thread_t
*
p_input
;
p_input
=
pl_CurrentInput
(
VLCIntf
);
if
(
p_input
)
{
f_rate
=
var_GetFloat
(
p_input
,
"rate"
);
vlc_object_release
(
p_input
);
}
else
{
playlist_t
*
p_playlist
=
pl_Get
(
VLCIntf
);
NSLog
(
@"playlist rate = %f"
,
f_rate
);
}
float
rate
=
var_GetFloat
(
p_playlist
,
"rate"
);
double
value
=
17
*
log
(
rate
)
/
log
(
2
.
);
double
value
=
17
*
log
(
f_rate
)
/
log
(
2
.
);
int
returnValue
=
(
int
)
(
(
value
>
0
)
?
value
+
.
5
:
value
-
.
5
);
if
(
returnValue
<
-
34
)
...
...
modules/gui/macosx/intf.m
View file @
0c4c7f06
...
...
@@ -252,7 +252,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
[[
VLCMain
sharedInstance
]
playbackStatusUpdated
];
break
;
case
INPUT_EVENT_RATE
:
[[
VLCMainMenu
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackRate
)
withObject
:
nil
waitUntilDone
:
NO
];
[[
[
VLCMain
sharedInstance
]
mainMenu
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackRate
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
case
INPUT_EVENT_POSITION
:
[[
VLCMain
sharedInstance
]
updatePlaybackPosition
];
...
...
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