Browse Source

libobs: Fix deinterlacing discarding flipped status

When rendering the deinterlaced surface, it would not take in to account
whether the async surfaces were marked as flipped or not.
jp9000 10 years ago
parent
commit
3cb36bbd51
1 changed files with 2 additions and 1 deletions
  1. 2 1
      libobs/obs-source-deinterlace.c

+ 2 - 1
libobs/obs-source-deinterlace.c

@@ -357,7 +357,8 @@ void deinterlace_render(obs_source_t *s)
 	gs_effect_set_bool(frame2, obs->video.video_time >= frame2_ts);
 
 	while (gs_effect_loop(effect, tech))
-		gs_draw_sprite(NULL, 0, s->async_width, s->async_height);
+		gs_draw_sprite(NULL, s->async_flip ? GS_FLIP_V : 0,
+				s->async_width, s->async_height);
 }
 
 static void enable_deinterlacing(obs_source_t *source,