[vlc-commits] bluray: free resource as soon as not needed

Rafaël Carré git at videolan.org
Fri Aug 16 13:26:09 CEST 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Aug 12 09:41:10 2013 +0200| [d1ad603db9f66aa19fb0c39a7e00ae5a35b28776] | committer: Rafaël Carré

bluray: free resource as soon as not needed

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

 modules/access/bluray.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index f1e0305..fe641bb 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1303,12 +1303,12 @@ static void blurayHandleEvent( demux_t *p_demux, const BD_EVENT *e )
             break ;
         /* The param we get is the real stream id, not an index, ie. it starts from 1 */
         int pid = info->clips[p_sys->i_current_clip].audio_streams[e->param - 1].pid;
+        bd_free_title_info( info );
         int idx = findEsPairIndex(p_sys, pid);
         if (idx >= 0) {
             es_out_id_t *p_es = vlc_array_item_at_index(&p_sys->es, idx);
             es_out_Control( p_demux->out, ES_OUT_SET_ES, p_es );
         }
-        bd_free_title_info( info );
         p_sys->i_audio_stream = pid;
         break ;
     case BD_EVENT_CHAPTER:



More information about the vlc-commits mailing list