[vlc-devel] [PATCH] Don't call SpuHeapDeleteAt when the entry is already deleted

Denis Charmet typx at dinauz.org
Thu Aug 5 11:42:56 CEST 2010


Hi,

It seems that in src/video_output/vout_subpictures.c that
SpuHeapDeleteAt is called even if the picture is already deleted (as it
doesn't reset the b_reject field to false).

-- 
TypX
Le mauvais esprit est un art de vivre

---
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 45d0541..185634d 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -599,7 +599,7 @@ subpicture_t *spu_SortSubpictures( spu_t *p_spu, mtime_t render_subtitle_date,

             if( !p_current || p_entry->b_reject )
             {
-                if( p_entry->b_reject )
+                if( p_current )
                     SpuHeapDeleteAt( &p_sys->heap, i_index );
                 continue;
             }




More information about the vlc-devel mailing list