Commit 8c4a9893 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

picture_fifo: avoid shadow variable

parent 97956957
...@@ -127,12 +127,8 @@ void picture_fifo_Flush(picture_fifo_t *fifo, mtime_t date, bool flush_before) ...@@ -127,12 +127,8 @@ void picture_fifo_Flush(picture_fifo_t *fifo, mtime_t date, bool flush_before)
} }
vlc_mutex_unlock(&fifo->lock); vlc_mutex_unlock(&fifo->lock);
for (;;) { while ((picture = PictureFifoPop(&tmp)) != NULL)
picture_t *picture = PictureFifoPop(&tmp);
if (!picture)
break;
picture_Release(picture); picture_Release(picture);
}
} }
void picture_fifo_OffsetDate(picture_fifo_t *fifo, mtime_t delta) void picture_fifo_OffsetDate(picture_fifo_t *fifo, mtime_t delta)
{ {
......
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