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
687d5974
Commit
687d5974
authored
Sep 02, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch video-filters on the fly
parent
c7b3c555
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
modules/gui/wxwindows/extrapanel.cpp
modules/gui/wxwindows/extrapanel.cpp
+13
-0
No files found.
modules/gui/wxwindows/extrapanel.cpp
View file @
687d5974
...
@@ -827,6 +827,7 @@ void ExtraPanel::OnAdjustUpdate( wxScrollEvent &event)
...
@@ -827,6 +827,7 @@ void ExtraPanel::OnAdjustUpdate( wxScrollEvent &event)
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_vout
==
NULL
)
if
(
p_vout
==
NULL
)
{
switch
(
event
.
GetId
()
)
switch
(
event
.
GetId
()
)
{
{
case
Hue_Event
:
case
Hue_Event
:
...
@@ -853,6 +854,7 @@ void ExtraPanel::OnAdjustUpdate( wxScrollEvent &event)
...
@@ -853,6 +854,7 @@ void ExtraPanel::OnAdjustUpdate( wxScrollEvent &event)
(
float
)
event
.
GetPosition
()
/
10
);
(
float
)
event
.
GetPosition
()
/
10
);
break
;
break
;
}
}
}
else
else
{
{
vlc_value_t
val
;
vlc_value_t
val
;
...
@@ -959,6 +961,7 @@ void ExtraPanel::CheckAout()
...
@@ -959,6 +961,7 @@ void ExtraPanel::CheckAout()
static
void
ChangeVFiltersString
(
intf_thread_t
*
p_intf
,
static
void
ChangeVFiltersString
(
intf_thread_t
*
p_intf
,
char
*
psz_name
,
vlc_bool_t
b_add
)
char
*
psz_name
,
vlc_bool_t
b_add
)
{
{
vout_thread_t
*
p_vout
;
char
*
psz_parser
,
*
psz_string
;
char
*
psz_parser
,
*
psz_string
;
psz_string
=
config_GetPsz
(
p_intf
,
"filter"
);
psz_string
=
config_GetPsz
(
p_intf
,
"filter"
);
...
@@ -1003,6 +1006,16 @@ static void ChangeVFiltersString( intf_thread_t *p_intf,
...
@@ -1003,6 +1006,16 @@ static void ChangeVFiltersString( intf_thread_t *p_intf,
}
}
/* Vout is not kept, so put that in the config */
/* Vout is not kept, so put that in the config */
config_PutPsz
(
p_intf
,
"filter"
,
psz_string
);
config_PutPsz
(
p_intf
,
"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
,
"filter"
,
psz_string
);
vlc_object_release
(
p_vout
);
}
free
(
psz_string
);
free
(
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