Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
e2ec60ce
Commit
e2ec60ce
authored
Jan 09, 2011
by
Laurent Aimar
Browse files
Changed picture_fifo_Pop/picture_pool_Get to set picture_t::p_next to NULL.
parent
b31dd1a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/misc/picture_fifo.c
View file @
e2ec60ce
...
...
@@ -62,6 +62,7 @@ static picture_t *PictureFifoPop(picture_fifo_t *fifo)
fifo
->
first
=
picture
->
p_next
;
if
(
!
fifo
->
first
)
fifo
->
last_ptr
=
&
fifo
->
first
;
picture
->
p_next
=
NULL
;
}
return
picture
;
}
...
...
src/misc/picture_pool.c
View file @
e2ec60ce
...
...
@@ -223,6 +223,7 @@ picture_t *picture_pool_Get(picture_pool_t *pool)
continue
;
/* */
picture
->
p_next
=
NULL
;
picture
->
p_release_sys
->
tick
=
pool
->
tick
++
;
picture_Hold
(
picture
);
return
picture
;
...
...
src/video_output/video_output.c
View file @
e2ec60ce
...
...
@@ -401,7 +401,6 @@ picture_t *vout_GetPicture(vout_thread_t *vout)
picture_t
*
picture
=
picture_pool_Get
(
vout
->
p
->
decoder_pool
);
if
(
picture
)
{
picture_Reset
(
picture
);
picture
->
p_next
=
NULL
;
VideoFormatCopyCropAr
(
&
picture
->
format
,
&
vout
->
p
->
original
);
}
vlc_mutex_unlock
(
&
vout
->
p
->
picture_lock
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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