[vlc-devel] commit: ASX: fix obvious crash (fixes #3321) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Feb 21 17:43:31 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 21 18:40:38 2010 +0200| [57c36282504104d38f54dd35dafaba35512ff4d3] | committer: Rémi Denis-Courmont 

ASX: fix obvious crash (fixes #3321)

Regression from the ASX ad unskipping stuff

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=57c36282504104d38f54dd35dafaba35512ff4d3
---

 modules/demux/playlist/asx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index a8dfe42..02e445b 100644
--- a/modules/demux/playlist/asx.c
+++ b/modules/demux/playlist/asx.c
@@ -568,8 +568,8 @@ static int Demux( demux_t *p_demux )
                         {
                             if( uniq_entry_ad_backup != NULL )
                             {
-                                uniq_entry_ad_backup = NULL;
                                 vlc_gc_decref( uniq_entry_ad_backup );
+                                uniq_entry_ad_backup = NULL;
                             }
                             input_item_node_AppendItem( p_subitems, p_entry );
                             vlc_gc_decref( p_entry );




More information about the vlc-devel mailing list