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
cb6a3f8c
Commit
cb6a3f8c
authored
Oct 05, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed deinterlace-mode into filter-deinterlace-mode.
It will allow using "deinterlace-mode" as a core option.
parent
edf0142e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
modules/video_filter/deinterlace.c
modules/video_filter/deinterlace.c
+7
-7
src/video_output/video_output.c
src/video_output/video_output.c
+4
-4
No files found.
modules/video_filter/deinterlace.c
View file @
cb6a3f8c
...
...
@@ -138,7 +138,7 @@ vlc_module_begin ()
set_subcategory
(
SUBCAT_VIDEO_VFILTER
)
set_section
(
N_
(
"Display"
),
NULL
)
add_string
(
"deinterlace-mode"
,
"discard"
,
NULL
,
MODE_TEXT
,
add_string
(
"
filter-
deinterlace-mode"
,
"discard"
,
NULL
,
MODE_TEXT
,
MODE_LONGTEXT
,
false
)
change_string_list
(
mode_list
,
mode_list_text
,
0
)
change_safe
()
...
...
@@ -271,11 +271,11 @@ static int Create( vlc_object_t *p_this )
}
/* Look what method was requested */
psz_mode
=
var_CreateGetString
(
p_vout
,
"deinterlace-mode"
);
psz_mode
=
var_CreateGetString
(
p_vout
,
"
filter-
deinterlace-mode"
);
if
(
!
psz_mode
)
{
msg_Err
(
p_vout
,
"configuration variable deinterlace-mode empty"
);
msg_Err
(
p_vout
,
"configuration variable
filter-
deinterlace-mode empty"
);
msg_Err
(
p_vout
,
"no deinterlace mode provided, using
\"
discard
\"
"
);
psz_mode
=
strdup
(
"discard"
);
...
...
@@ -433,7 +433,7 @@ static int Init( vout_thread_t *p_vout )
vout_filter_AddChild
(
p_vout
,
p_vout
->
p_sys
->
p_vout
,
MouseEvent
);
var_AddCallback
(
p_vout
,
"deinterlace-mode"
,
FilterCallback
,
NULL
);
var_AddCallback
(
p_vout
,
"
filter-
deinterlace-mode"
,
FilterCallback
,
NULL
);
return
VLC_SUCCESS
;
}
...
...
@@ -458,7 +458,7 @@ static void End( vout_thread_t *p_vout )
{
vout_sys_t
*
p_sys
=
p_vout
->
p_sys
;
var_DelCallback
(
p_vout
,
"deinterlace-mode"
,
FilterCallback
,
NULL
);
var_DelCallback
(
p_vout
,
"
filter-
deinterlace-mode"
,
FilterCallback
,
NULL
);
for
(
int
i
=
0
;
i
<
HISTORY_SIZE
;
i
++
)
{
...
...
@@ -2058,8 +2058,8 @@ static int OpenFilter( vlc_object_t *p_this )
p_filter
->
p_cfg
);
var_Get
(
p_filter
,
FILTER_CFG_PREFIX
"mode"
,
&
val
);
var_Create
(
p_filter
,
"deinterlace-mode"
,
VLC_VAR_STRING
);
var_Set
(
p_filter
,
"deinterlace-mode"
,
val
);
var_Create
(
p_filter
,
"
filter-
deinterlace-mode"
,
VLC_VAR_STRING
);
var_Set
(
p_filter
,
"
filter-
deinterlace-mode"
,
val
);
free
(
val
.
psz_string
);
if
(
Create
(
VLC_OBJECT
(
p_vout
)
)
!=
VLC_SUCCESS
)
...
...
src/video_output/video_output.c
View file @
cb6a3f8c
...
...
@@ -1909,8 +1909,8 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
var_Create
(
p_input
,
"deinterlace"
,
VLC_VAR_STRING
);
var_SetString
(
p_input
,
"deinterlace"
,
*
p_mode
->
psz_mode
?
p_mode
->
psz_mode
:
"disable"
);
var_Create
(
p_input
,
"deinterlace-mode"
,
VLC_VAR_STRING
);
var_SetString
(
p_input
,
"deinterlace-mode"
,
p_mode
->
psz_mode
);
var_Create
(
p_input
,
"
filter-
deinterlace-mode"
,
VLC_VAR_STRING
);
var_SetString
(
p_input
,
"
filter-
deinterlace-mode"
,
p_mode
->
psz_mode
);
var_Create
(
p_input
,
"sout-deinterlace-mode"
,
VLC_VAR_STRING
);
var_SetString
(
p_input
,
"sout-deinterlace-mode"
,
p_mode
->
psz_mode
);
...
...
@@ -1922,7 +1922,7 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
if
(
p_mode
->
b_vout_filter
)
{
psz_old
=
var_CreateGetString
(
p_vout
,
"deinterlace-mode"
);
psz_old
=
var_CreateGetString
(
p_vout
,
"
filter-
deinterlace-mode"
);
}
else
{
...
...
@@ -1990,7 +1990,7 @@ static void DeinterlaceEnable( vout_thread_t *p_vout )
{
/* Get the initial value from filters if present */
if
(
DeinterlaceIsPresent
(
p_vout
,
true
)
)
psz_mode
=
var_CreateGetNonEmptyString
(
p_vout
,
"deinterlace-mode"
);
psz_mode
=
var_CreateGetNonEmptyString
(
p_vout
,
"
filter-
deinterlace-mode"
);
else
if
(
DeinterlaceIsPresent
(
p_vout
,
false
)
)
psz_mode
=
var_CreateGetNonEmptyString
(
p_vout
,
"sout-deinterlace-mode"
);
}
...
...
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