[vlc-devel] [PATCH 4/9] Support rotated movies.

Matthias Keiser matthias at tristan-inc.com
Wed Mar 5 17:01:25 CET 2014


---
 src/video_output/video_output.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 64bef99..a629e9f 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -918,6 +918,7 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
                            vd->info.subpicture_chromas &&
                            *vd->info.subpicture_chromas != 0;
     const bool do_early_spu = !do_dr_spu &&
+                               vd->source.orientation == vd->fmt.orientation && //snapshots will be missing subpictures in this case
                               (vd->info.is_slow ||
                                sys->display.use_dr ||
                                do_snapshot ||
@@ -964,8 +965,10 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
         }
     }
 
+    video_format_t fmt_spu_rot;
+    video_format_ApplyRotation(&fmt_spu, &fmt_spu_rot);
     subpicture_t *subpic = spu_Render(vout->p->spu,
-                                      subpicture_chromas, &fmt_spu,
+                                      subpicture_chromas, &fmt_spu_rot,
                                       &vd->source,
                                       render_subtitle_date, render_osd_date,
                                       do_snapshot);
-- 
1.8.3.4 (Apple Git-47)




More information about the vlc-devel mailing list