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
103019a8
Commit
103019a8
authored
Jun 23, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* OSX compiles again (BEWARE it is still SEVERELY broken)
parent
eb3c7096
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
31 deletions
+12
-31
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+3
-14
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+9
-17
No files found.
modules/gui/macosx/controls.m
View file @
103019a8
...
...
@@ -334,7 +334,7 @@
[
o_volumeslider
setFloatValue
:
(
float
)(
i_volume
/
AOUT_VOLUME_STEP
)];
vout_OSDMessage
(
p_intf
,
DEFAULT_CHAN
,
"Vol %d%%"
,
i_volume
*
1
00
/
AOUT_VOLUME_MAX
);
i_volume
*
2
00
/
AOUT_VOLUME_MAX
);
}
-
(
IBAction
)
windowAction
:(
id
)
sender
...
...
@@ -620,9 +620,7 @@
{
if
(
p_playlist
!=
NULL
&&
p_input
!=
NULL
)
{
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
bEnabled
=
p_input
->
stream
.
b_pace_control
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
bEnabled
=
p_input
->
input
.
b_can_pace_control
;
}
else
{
...
...
@@ -646,13 +644,6 @@
else
{
bEnabled
=
p_playlist
->
i_size
>
1
;
if
(
p_input
!=
NULL
)
{
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
bEnabled
|=
p_input
->
stream
.
i_area_nb
>
1
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
}
}
}
else
if
(
[[
o_mi
title
]
isEqualToString
:
_NS
(
"Random"
)]
)
...
...
@@ -681,9 +672,7 @@
{
if
(
p_playlist
!=
NULL
&&
p_input
!=
NULL
)
{
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
bEnabled
=
p_input
->
stream
.
b_seekable
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
bEnabled
=
TRUE
;
/* FIXME p_input seekable */
}
else
{
...
...
modules/gui/macosx/intf.m
View file @
103019a8
...
...
@@ -84,9 +84,9 @@ int E_(OpenIntf) ( vlc_object_t *p_this )
void
E_
(
CloseIntf
)
(
vlc_object_t
*
p_this
)
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
[
p_intf
->
p_sys
->
o_sendport
release
];
[
p_intf
->
p_sys
->
o_pool
release
];
...
...
@@ -728,14 +728,10 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
vlc_value_t
val
;
/* New input or stream map change */
if
(
p_input
->
stream
.
b_changed
)
{
msg_Dbg
(
p_intf
,
"stream has changed, refreshing interface"
);
p_intf
->
p_sys
->
b_playing
=
TRUE
;
p_intf
->
p_sys
->
b_current_title_update
=
1
;
p_input
->
stream
.
b_changed
=
0
;
p_intf
->
p_sys
->
b_intf_update
=
TRUE
;
}
if
(
var_Get
(
(
vlc_object_t
*
)
p_input
,
"intf-change"
,
&
val
)
>=
0
&&
val
.
b_bool
)
...
...
@@ -845,18 +841,14 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
if
(
(
b_input
=
(
p_input
!=
NULL
)
)
)
{
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
/* seekable streams */
b_seekable
=
p_input
->
stream
.
b_seekable
;
b_seekable
=
(
BOOL
)
f_slider_old
;
/* check wether slow/fast motion is possible*/
b_control
=
p_input
->
stream
.
b
_pace_control
;
b_control
=
p_input
->
input
.
b_can
_pace_control
;
/* chapters & titles */
b_chapters
=
p_input
->
stream
.
i_area_nb
>
1
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
//b_chapters = p_input->stream.i_area_nb > 1;
}
[
o_btn_stop
setEnabled
:
b_input
];
...
...
@@ -899,7 +891,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
NSString
*
o_time
;
mtime_t
i_seconds
;
if
(
p_input
->
stream
.
b_seekable
)
if
(
(
BOOL
)
f_slider_old
)
{
vlc_value_t
pos
;
float
f_updated
;
...
...
@@ -1177,7 +1169,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
mtime_t
i_seconds
;
NSString
*
o_time
;
if
(
p_input
->
stream
.
b_seekable
)
if
(
(
BOOL
)
f_slider_old
)
{
vlc_value_t
pos
;
pos
.
f_float
=
f_updated
/
10000
.;
...
...
@@ -1216,7 +1208,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
}
/* FIXME - Wait here until all vouts are terminated because
libvlc's VLC_
Sto
p destroys interfaces before vouts, which isn't
libvlc's VLC_
CleanU
p destroys interfaces before vouts, which isn't
good on OS X. We definitly need a cleaner way to handle this,
but this may hopefully be good enough for now.
-- titer 2003/11/22 */
...
...
@@ -1265,8 +1257,8 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
o_msg_lock
=
nil
;
}
[
NSApp
terminate
:
nil
];
[
NSApp
stop
:
nil
];
[
NSApp
terminate
:
nil
];
/* write cached user defaults to disk */
[[
NSUserDefaults
standardUserDefaults
]
synchronize
];
...
...
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