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
25f233cf
Commit
25f233cf
authored
Dec 27, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix rare crash when changing video effects settings
parent
3429eb01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
modules/gui/macosx/VideoEffects.m
modules/gui/macosx/VideoEffects.m
+13
-12
No files found.
modules/gui/macosx/VideoEffects.m
View file @
25f233cf
...
...
@@ -536,20 +536,21 @@ static VLCVideoEffects *_o_sharedInstance = nil;
vlc_object_release
(
p_vout
);
vlc_object_t
*
p_filter
=
vlc_object_find_name
(
pl_Get
(
p_intf
),
psz_filter
);
int
i_type
;
i_type
=
var_Type
(
p_filter
,
psz_name
);
if
(
i_type
==
0
)
i_type
=
config_GetType
(
p_intf
,
psz_name
);
if
(
!
(
i_type
&
VLC_VAR_ISCOMMAND
))
{
msg_Warn
(
p_intf
,
"Brute-restarting filter '%s', because the last changed option isn't a command"
,
psz_name
);
[
self
setVideoFilter
:
psz_filter
on
:
NO
];
[
self
setVideoFilter
:
psz_filter
on
:
YES
];
}
else
msg_Dbg
(
p_intf
,
"restart not needed"
);
if
(
p_filter
)
{
int
i_type
;
i_type
=
var_Type
(
p_filter
,
psz_name
);
if
(
i_type
==
0
)
i_type
=
config_GetType
(
p_intf
,
psz_name
);
if
(
!
(
i_type
&
VLC_VAR_ISCOMMAND
))
{
msg_Warn
(
p_intf
,
"Brute-restarting filter '%s', because the last changed option isn't a command"
,
psz_name
);
[
self
setVideoFilter
:
psz_filter
on
:
NO
];
[
self
setVideoFilter
:
psz_filter
on
:
YES
];
}
else
msg_Dbg
(
p_intf
,
"restart not needed"
);
if
(
p_filter
)
vlc_object_release
(
p_filter
);
}
}
-
(
void
)
setVideoFilterProperty
:
(
char
*
)
psz_name
forFilter
:
(
char
*
)
psz_filter
integer
:
(
int
)
i_value
...
...
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