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
fc5156cc
Commit
fc5156cc
authored
May 26, 2012
by
Edward Wang
Committed by
Jean-Baptiste Kempf
May 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
visual: remove depreciated vlc_object_alive
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
73e24627
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
modules/visualization/visual/visual.c
modules/visualization/visual/visual.c
+7
-4
modules/visualization/visual/visual.h
modules/visualization/visual/visual.h
+2
-1
No files found.
modules/visualization/visual/visual.c
View file @
fc5156cc
...
...
@@ -198,6 +198,7 @@ static int Open( vlc_object_t *p_this )
if
(
(
p_sys
->
i_height
%
2
)
!=
0
)
p_sys
->
i_height
--
;
if
(
(
p_sys
->
i_width
%
2
)
!=
0
)
p_sys
->
i_width
--
;
p_sys
->
b_close
=
false
;
p_sys
->
i_effect
=
0
;
p_sys
->
effect
=
NULL
;
...
...
@@ -323,13 +324,13 @@ static block_t *DoWork( filter_t *p_filter, block_t *p_in_buf )
picture_t
*
p_outpic
;
/* First, get a new picture */
while
(
(
p_outpic
=
vout_GetPicture
(
p_sys
->
p_vout
)
)
==
NULL
)
{
/* XXX: This looks like a bad idea. Don't run to me for sympathy if it
* dead locks... */
if
(
!
vlc_object_alive
(
p_sys
->
p_vout
)
)
do
{
if
(
p_sys
->
b_close
)
return
NULL
;
msleep
(
VOUT_OUTMEM_SLEEP
);
}
while
(
(
p_outpic
=
vout_GetPicture
(
p_sys
->
p_vout
)
)
==
NULL
);
/* Blank the picture */
for
(
int
i
=
0
;
i
<
p_outpic
->
i_planes
;
i
++
)
...
...
@@ -364,6 +365,8 @@ static void Close( vlc_object_t *p_this )
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
p_sys
->
b_close
=
true
;
if
(
p_filter
->
p_sys
->
p_vout
)
{
aout_filter_RequestVout
(
p_filter
,
p_filter
->
p_sys
->
p_vout
,
0
);
...
...
modules/visualization/visual/visual.h
View file @
fc5156cc
...
...
@@ -63,7 +63,8 @@ typedef struct
*****************************************************************************/
struct
filter_sys_t
{
vout_thread_t
*
p_vout
;
vout_thread_t
*
p_vout
;
bool
b_close
;
int
i_width
;
int
i_height
;
...
...
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