Browse Source

video_output: move release after display

Alexandre Janniaux 5 years ago
parent
commit
710c0472eb
  1. 1
      include/vlc_vout_display.h
  2. 3
      src/video_output/video_output.c

1
include/vlc_vout_display.h

@ -430,7 +430,6 @@ static inline void vout_display_Display(vout_display_t *vd, picture_t *picture)
{
if (vd->ops->display != NULL)
vd->ops->display(vd, picture);
picture_Release(picture);
}
VLC_API

3
src/video_output/video_output.c

@ -1633,8 +1633,7 @@ static int RenderPicture(vout_thread_sys_t *vout, bool render_now)
NS_FROM_VLC_TICK(system_pts == INT64_MAX ? system_now : system_pts));
}
}
else
picture_Release(todisplay);
picture_Release(todisplay);
if (atomic_load(&sys->b_display_avstat))
{

Loading…
Cancel
Save