Commit a62abb71 authored by Jean-Paul Saman's avatar Jean-Paul Saman

src/video_output.c: cleanup vout_GetPictureCount()

Use define VOUT_MAX_PICTURES from vout_internal.h instead of fixed number.
parent 468a0471
......@@ -470,7 +470,7 @@ void vout_HoldPicture(vout_thread_t *vout, picture_t *picture)
int vout_GetPictureCount(vout_thread_t *vout)
{
if (vout == NULL)
return 20; /* FIXME: vout_internal.c has VOUT_MAX_PICTURES set to 20 */
return VOUT_MAX_PICTURES; /* FIXME: vout_internal.h has VOUT_MAX_PICTURES set to 20 */
vlc_mutex_lock(&vout->p->picture_lock);
int size = picture_pool_GetSize(vout->p->decoder_pool);
......
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