Skip to content

Commit

Permalink
picture_fifo: avoid shadow variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Sep 21, 2014
1 parent 9795695 commit 8c4a989
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/misc/picture_fifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,8 @@ void picture_fifo_Flush(picture_fifo_t *fifo, mtime_t date, bool flush_before)
}
vlc_mutex_unlock(&fifo->lock);

for (;;) {
picture_t *picture = PictureFifoPop(&tmp);
if (!picture)
break;
while ((picture = PictureFifoPop(&tmp)) != NULL)
picture_Release(picture);
}
}
void picture_fifo_OffsetDate(picture_fifo_t *fifo, mtime_t delta)
{
Expand Down

0 comments on commit 8c4a989

Please sign in to comment.