[vlc-devel] [PATCH] android_window: don't clear whole subpicture when first rendered

Thomas Guillem thomas at gllm.fr
Fri Feb 20 15:03:17 CET 2015


---
 modules/video_output/android/android_window.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/android/android_window.c b/modules/video_output/android/android_window.c
index 83f1658..e957e58 100644
--- a/modules/video_output/android/android_window.c
+++ b/modules/video_output/android/android_window.c
@@ -903,9 +903,15 @@ static void SubtitleGetDirtyBounds(vout_display_t *vd,
             }
         }
     }
+    if (!b_found)
+    {
+        p_out_bounds->left =
+        p_out_bounds->top =
+        p_out_bounds->right =
+        p_out_bounds->bottom = 0;
+    }
 
-    if (!b_found
-     || p_out_bounds->left < 0
+    if (p_out_bounds->left < 0
      || p_out_bounds->right < 0
      || (unsigned int) p_out_bounds->right > sys->p_sub_pic->format.i_width
      || p_out_bounds->bottom < 0
-- 
2.1.3




More information about the vlc-devel mailing list