Browse Source

Revert "video_output: move release after display"

This reverts commit 710c0472eb.
PA_sk_master_2021-1102-162639
Alexandre Janniaux 5 years ago
parent
commit
9c7af40f8b
  1. 1
      include/vlc_vout_display.h
  2. 3
      src/video_output/video_output.c

1
include/vlc_vout_display.h

@ -430,6 +430,7 @@ 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

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

Loading…
Cancel
Save