Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
0b23d302
Commit
0b23d302
authored
Feb 18, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix UI crash within the open panel (refs #8146)
parent
7cc2c800
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
modules/gui/macosx/open.h
modules/gui/macosx/open.h
+0
-1
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+12
-11
No files found.
modules/gui/macosx/open.h
View file @
0b23d302
...
...
@@ -243,7 +243,6 @@
NSString
*
o_file_slave_path
;
NSString
*
o_sub_path
;
NSString
*
o_mrl
;
intf_thread_t
*
p_intf
;
NSMutableArray
*
o_displayInfos
;
}
...
...
modules/gui/macosx/open.m
View file @
0b23d302
...
...
@@ -84,10 +84,8 @@ static VLCOpen *_o_sharedMainInstance = nil;
{
if
(
_o_sharedMainInstance
)
[
self
dealloc
];
else
{
else
_o_sharedMainInstance
=
[
super
init
];
p_intf
=
VLCIntf
;
}
return
_o_sharedMainInstance
;
}
...
...
@@ -196,8 +194,8 @@ static VLCOpen *_o_sharedMainInstance = nil;
[[
o_net_mode
cellAtRow
:
0
column
:
0
]
setTitle
:
_NS
(
"Unicast"
)];
[[
o_net_mode
cellAtRow
:
1
column
:
0
]
setTitle
:
_NS
(
"Multicast"
)];
[
o_net_udp_port
setIntValue
:
config_GetInt
(
p_i
ntf
,
"server-port"
)];
[
o_net_udp_port_stp
setIntValue
:
config_GetInt
(
p_i
ntf
,
"server-port"
)];
[
o_net_udp_port
setIntValue
:
config_GetInt
(
VLCI
ntf
,
"server-port"
)];
[
o_net_udp_port_stp
setIntValue
:
config_GetInt
(
VLCI
ntf
,
"server-port"
)];
[
o_eyetv_chn_bgbar
setUsesThreadedAnimation
:
YES
];
...
...
@@ -348,6 +346,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
{
int
i_index
;
module_config_t
*
p_item
;
intf_thread_t
*
p_intf
=
VLCIntf
;
[
o_file_sub_ckbox
setTitle
:
_NS
(
"Load subtitles file:"
)];
[
o_file_sub_path_lbl
setStringValue
:
_NS
(
"Choose a file"
)];
...
...
@@ -442,7 +441,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
[
o_options
addObject
:
[
NSString
stringWithFormat
:
@"subsdec-align=%li"
,
[
o_file_sub_align_pop
indexOfSelectedItem
]]];
p_item
=
config_FindConfig
(
VLC_OBJECT
(
p_i
ntf
),
p_item
=
config_FindConfig
(
VLC_OBJECT
(
VLCI
ntf
),
"freetype-rel-fontsize"
);
if
(
p_item
)
{
...
...
@@ -1181,7 +1180,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
else
if
([[
sender
selectedCell
]
tag
]
==
1
)
[
o_panel
makeFirstResponder
:
o_net_udpm_addr
];
else
msg_Warn
(
p_i
ntf
,
"Unknown sender tried to change UDP/RTP mode"
);
msg_Warn
(
VLCI
ntf
,
"Unknown sender tried to change UDP/RTP mode"
);
}
[
self
openNetInfoChanged
:
nil
];
...
...
@@ -1223,7 +1222,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
else
o_mrl_string
=
@"rtp://"
;
if
(
i_port
!=
config_GetInt
(
p_i
ntf
,
"server-port"
))
{
if
(
i_port
!=
config_GetInt
(
VLCI
ntf
,
"server-port"
))
{
o_mrl_string
=
[
o_mrl_string
stringByAppendingFormat
:
@"@:%i"
,
i_port
];
}
...
...
@@ -1237,7 +1236,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
else
o_mrl_string
=
[
NSString
stringWithFormat
:
@"rtp://@%@"
,
o_addr
];
if
(
i_port
!=
config_GetInt
(
p_i
ntf
,
"server-port"
))
{
if
(
i_port
!=
config_GetInt
(
VLCI
ntf
,
"server-port"
))
{
o_mrl_string
=
[
o_mrl_string
stringByAppendingFormat
:
@":%i"
,
i_port
];
}
...
...
@@ -1272,7 +1271,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
else
o_mrl_string
=
@"rtp://"
;
if
(
i_port
!=
config_GetInt
(
p_i
ntf
,
"server-port"
))
{
if
(
i_port
!=
config_GetInt
(
VLCI
ntf
,
"server-port"
))
{
o_mrl_string
=
[
o_mrl_string
stringByAppendingFormat
:
@"@:%i"
,
i_port
];
}
...
...
@@ -1286,7 +1285,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
else
o_mrl_string
=
[
NSString
stringWithFormat
:
@"rtp://@%@"
,
o_addr
];
if
(
i_port
!=
config_GetInt
(
p_i
ntf
,
"server-port"
))
{
if
(
i_port
!=
config_GetInt
(
VLCI
ntf
,
"server-port"
))
{
o_mrl_string
=
[
o_mrl_string
stringByAppendingFormat
:
@":%i"
,
i_port
];
}
...
...
@@ -1319,6 +1318,8 @@ static VLCOpen *_o_sharedMainInstance = nil;
-
(
IBAction
)
openCaptureModeChanged
:(
id
)
sender
{
intf_thread_t
*
p_intf
=
VLCIntf
;
if
([[[
o_capture_mode_pop
selectedItem
]
title
]
isEqualToString
:
@"EyeTV"
])
{
if
([[[
VLCMain
sharedInstance
]
eyeTVController
]
eyeTVRunning
]
==
YES
)
{
if
([[[
VLCMain
sharedInstance
]
eyeTVController
]
deviceConnected
]
==
YES
)
{
...
...
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