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
0933fed1
Commit
0933fed1
authored
May 19, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a bunch of FIXMEs
parent
5e2bfc33
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
modules/video_filter/mosaic.c
modules/video_filter/mosaic.c
+4
-6
modules/video_filter/osdmenu.c
modules/video_filter/osdmenu.c
+2
-1
modules/video_filter/postproc.c
modules/video_filter/postproc.c
+3
-1
modules/video_filter/puzzle.c
modules/video_filter/puzzle.c
+2
-0
No files found.
modules/video_filter/mosaic.c
View file @
0933fed1
...
...
@@ -322,7 +322,7 @@ static int CreateFilter( vlc_object_t *p_this )
GET_VAR
(
align
,
0
,
10
);
if
(
p_sys
->
i_align
==
3
||
p_sys
->
i_align
==
7
)
p_sys
->
i_align
=
5
;
p_sys
->
i_align
=
5
;
/* FIXME: NOT THREAD SAFE w.r.t. callback */
GET_VAR
(
borderw
,
0
,
INT_MAX
);
GET_VAR
(
borderh
,
0
,
INT_MAX
);
...
...
@@ -332,7 +332,7 @@ static int CreateFilter( vlc_object_t *p_this )
GET_VAR
(
position
,
0
,
2
);
GET_VAR
(
delay
,
100
,
INT_MAX
);
#undef GET_VAR
p_sys
->
i_delay
*=
1000
;
p_sys
->
i_delay
*=
1000
;
/* FIXME: NOT THREAD SAFE w.r.t. callback */
p_sys
->
b_ar
=
var_CreateGetBoolCommand
(
p_filter
,
CFG_PREFIX
"keep-aspect-ratio"
);
...
...
@@ -392,9 +392,8 @@ static void DestroyFilter( vlc_object_t *p_this )
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
int
i_index
;
vlc_mutex_lock
(
&
p_sys
->
lock
);
/* FIXME: destroy callbacks first! */
if
(
!
p_sys
->
b_keep
)
{
...
...
@@ -403,7 +402,7 @@ static void DestroyFilter( vlc_object_t *p_this )
if
(
p_sys
->
i_order_length
)
{
for
(
i_index
=
0
;
i_index
<
p_sys
->
i_order_length
;
i_index
++
)
for
(
i
nt
i
_index
=
0
;
i_index
<
p_sys
->
i_order_length
;
i_index
++
)
{
free
(
p_sys
->
ppsz_order
[
i_index
]
);
}
...
...
@@ -416,7 +415,6 @@ static void DestroyFilter( vlc_object_t *p_this )
p_sys
->
i_offsets_length
=
0
;
}
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
free
(
p_sys
);
}
...
...
modules/video_filter/osdmenu.c
View file @
0933fed1
...
...
@@ -218,6 +218,7 @@ static int CreateFilter ( vlc_object_t *p_this )
if
(
p_sys
->
p_menu
==
NULL
)
goto
error
;
/* FIXME: this plugin is not at all thread-safe w.r.t. callbacks */
p_sys
->
p_menu
->
i_position
=
p_sys
->
i_position
;
/* Check if menu position was overridden */
...
...
@@ -289,7 +290,7 @@ static void DestroyFilter( vlc_object_t *p_this )
var_DelCallback
(
p_filter
,
OSD_CFG
"update"
,
OSDMenuCallback
,
p_sys
);
var_DelCallback
(
p_filter
,
OSD_CFG
"alpha"
,
OSDMenuCallback
,
p_sys
);
if
(
p_sys
)
if
(
p_sys
)
/* FIXME: <-- WTF??? what about the 4 ones above? */
{
var_DelCallback
(
p_sys
->
p_menu
,
"osd-menu-update"
,
OSDMenuUpdateEvent
,
p_filter
);
...
...
modules/video_filter/postproc.c
View file @
0933fed1
...
...
@@ -239,7 +239,7 @@ static int OpenPostproc( vlc_object_t *p_this )
&
val
,
text
.
psz_string
?&
text
:
NULL
);
}
vlc_mutex_init
(
&
p_sys
->
lock
);
vlc_mutex_init
(
&
p_sys
->
lock
);
/* FIXME: too late w.r.t. callback */
p_filter
->
pf_video_filter
=
PostprocPict
;
p_sys
->
b_had_matrix
=
true
;
...
...
@@ -254,6 +254,8 @@ static void ClosePostproc( vlc_object_t *p_this )
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
/* FIXME: delete callbacks before mutex */
vlc_mutex_destroy
(
&
p_sys
->
lock
);
pp_free_context
(
p_sys
->
pp_context
);
if
(
p_sys
->
pp_mode
)
pp_free_mode
(
p_sys
->
pp_mode
);
...
...
modules/video_filter/puzzle.c
View file @
0933fed1
...
...
@@ -518,6 +518,8 @@ static int PuzzleCallback( vlc_object_t *p_this, char const *psz_var,
{
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
oldval
);
vout_sys_t
*
p_sys
=
(
vout_sys_t
*
)
p_data
;
/* FIXME: thread safety */
if
(
!
strcmp
(
psz_var
,
CFG_PREFIX
"rows"
)
)
{
p_sys
->
i_rows
=
__MAX
(
1
,
newval
.
i_int
);
...
...
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