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
c7b3c555
Commit
c7b3c555
authored
Sep 02, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/video_output/video_output.c: re-enabled on-the-fly switching of video filters.
parent
22aae046
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
38 deletions
+12
-38
src/video_output/video_output.c
src/video_output/video_output.c
+12
-38
No files found.
src/video_output/video_output.c
View file @
c7b3c555
...
...
@@ -1316,7 +1316,6 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
char
*
psz_mode
=
newval
.
psz_string
;
char
*
psz_filter
;
unsigned
int
i
;
psz_filter
=
config_GetPsz
(
p_vout
,
"filter"
);
...
...
@@ -1357,28 +1356,16 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
var_Set
(
p_input
,
"deinterlace-mode"
,
val
);
}
/* FIXME FIXME input2 --fenrir */
#if 0
/* now restart all video streams */
vlc_mutex_lock( &p_input->stream.stream_lock );
p_vout->b_filter_change = VLC_TRUE;
#define ES p_input->stream.pp_es[i]
for( i = 0 ; i < p_input->stream.i_es_number ; i++ )
/* Now restart current video stream */
var_Get
(
p_input
,
"video-es"
,
&
val
);
if
(
val
.
i_int
>=
0
)
{
if( ( ES->i_cat == VIDEO_ES ) && ES->p_dec != NULL )
{
input_UnselectES( p_input, ES );
input_SelectES( p_input, ES );
}
#undef ES
p_vout
->
b_filter_change
=
VLC_TRUE
;
var_Set
(
p_input
,
"video-es"
,
(
vlc_value_t
)
-
VIDEO_ES
);
var_Set
(
p_input
,
"video-es"
,
val
);
}
vlc_mutex_unlock( &p_input->stream.stream_lock );
vlc_object_release
(
p_input
);
#endif
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_vout
,
"intf-change"
,
val
);
...
...
@@ -1391,7 +1378,6 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd,
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_this
;
input_thread_t
*
p_input
;
vlc_value_t
val
;
unsigned
int
i
;
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_this
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
...
...
@@ -1402,28 +1388,16 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd,
return
(
VLC_EGENERIC
);
}
/* FIXME FIXME input2 --fenrir */
#if 0
/* Restart the video stream */
vlc_mutex_lock( &p_input->stream.stream_lock );
p_vout->b_filter_change = VLC_TRUE;
#define ES p_input->stream.pp_es[i]
for( i = 0 ; i < p_input->stream.i_es_number ; i++ )
/* Now restart current video stream */
var_Get
(
p_input
,
"video-es"
,
&
val
);
if
(
val
.
i_int
>=
0
)
{
if( ( ES->i_cat == VIDEO_ES ) && ES->p_dec != NULL )
{
input_UnselectES( p_input, ES );
input_SelectES( p_input, ES );
}
#undef ES
p_vout
->
b_filter_change
=
VLC_TRUE
;
var_Set
(
p_input
,
"video-es"
,
(
vlc_value_t
)
-
VIDEO_ES
);
var_Set
(
p_input
,
"video-es"
,
val
);
}
vlc_mutex_unlock( &p_input->stream.stream_lock );
vlc_object_release
(
p_input
);
#endif
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_vout
,
"intf-change"
,
val
);
...
...
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