Commit e2ec60ce authored by Laurent Aimar's avatar Laurent Aimar

Changed picture_fifo_Pop/picture_pool_Get to set picture_t::p_next to NULL.

parent b31dd1a4
...@@ -62,6 +62,7 @@ static picture_t *PictureFifoPop(picture_fifo_t *fifo) ...@@ -62,6 +62,7 @@ static picture_t *PictureFifoPop(picture_fifo_t *fifo)
fifo->first = picture->p_next; fifo->first = picture->p_next;
if (!fifo->first) if (!fifo->first)
fifo->last_ptr = &fifo->first; fifo->last_ptr = &fifo->first;
picture->p_next = NULL;
} }
return picture; return picture;
} }
......
...@@ -223,6 +223,7 @@ picture_t *picture_pool_Get(picture_pool_t *pool) ...@@ -223,6 +223,7 @@ picture_t *picture_pool_Get(picture_pool_t *pool)
continue; continue;
/* */ /* */
picture->p_next = NULL;
picture->p_release_sys->tick = pool->tick++; picture->p_release_sys->tick = pool->tick++;
picture_Hold(picture); picture_Hold(picture);
return picture; return picture;
......
...@@ -401,7 +401,6 @@ picture_t *vout_GetPicture(vout_thread_t *vout) ...@@ -401,7 +401,6 @@ picture_t *vout_GetPicture(vout_thread_t *vout)
picture_t *picture = picture_pool_Get(vout->p->decoder_pool); picture_t *picture = picture_pool_Get(vout->p->decoder_pool);
if (picture) { if (picture) {
picture_Reset(picture); picture_Reset(picture);
picture->p_next = NULL;
VideoFormatCopyCropAr(&picture->format, &vout->p->original); VideoFormatCopyCropAr(&picture->format, &vout->p->original);
} }
vlc_mutex_unlock(&vout->p->picture_lock); vlc_mutex_unlock(&vout->p->picture_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment