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
5277ffe2
Commit
5277ffe2
authored
Dec 02, 2006
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keeps vout-filter when activating extended gui
(fixes #789)
parent
09f219d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
modules/gui/wxwidgets/extrapanel.cpp
modules/gui/wxwidgets/extrapanel.cpp
+20
-10
No files found.
modules/gui/wxwidgets/extrapanel.cpp
View file @
5277ffe2
...
...
@@ -1050,9 +1050,19 @@ static void ChangeVFiltersString( intf_thread_t *p_intf,
vout_thread_t
*
p_vout
;
char
*
psz_parser
,
*
psz_string
;
psz_string
=
config_GetPsz
(
p_intf
,
"vout-filter"
);
/* first, look if a vout-filter has been set at runtime */
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
psz_string
=
(
p_vout
)
?
var_GetString
(
p_vout
,
"vout-filter"
)
:
strdup
(
""
);
if
(
!
psz_string
)
psz_string
=
strdup
(
""
);
/* else, look if vout-filter has been set in the config */
if
(
!*
psz_string
)
{
free
(
psz_string
);
psz_string
=
config_GetPsz
(
p_intf
,
"vout-filter"
);
if
(
!
psz_string
)
psz_string
=
strdup
(
""
);
}
psz_parser
=
strstr
(
psz_string
,
psz_name
);
...
...
@@ -1067,6 +1077,7 @@ static void ChangeVFiltersString( intf_thread_t *p_intf,
}
else
{
if
(
p_vout
)
vlc_object_release
(
p_vout
);
return
;
}
}
...
...
@@ -1083,19 +1094,18 @@ static void ChangeVFiltersString( intf_thread_t *p_intf,
{
*
(
psz_string
+
strlen
(
psz_string
)
-
1
)
=
'\0'
;
}
}
else
{
free
(
psz_string
);
return
;
}
}
else
{
if
(
p_vout
)
vlc_object_release
(
p_vout
);
free
(
psz_string
);
return
;
}
}
/* Vout is not kept, so put that in the config */
config_PutPsz
(
p_intf
,
"vout-filter"
,
psz_string
);
/* Try to set on the fly */
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_vout
)
{
var_SetString
(
p_vout
,
"vout-filter"
,
psz_string
);
...
...
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