[vlc-devel] commit: Vorbis: yield the playlist when using it ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed May 7 20:24:43 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Wed May  7 21:25:54 2008 +0300| [85a8d07027d29e364346fc5ad45cd6136bece16c]

Vorbis: yield the playlist when using it

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

 modules/codec/vorbis.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/codec/vorbis.c b/modules/codec/vorbis.c
index dc580f1..d6b8dea 100644
--- a/modules/codec/vorbis.c
+++ b/modules/codec/vorbis.c
@@ -726,7 +726,8 @@ static void ParseVorbisComments( decoder_t *p_dec )
                 r->pf_peak[AUDIO_REPLAY_GAIN_ALBUM] = atof( psz_value );
             }
         }
-        var_SetInteger( pl_Get( p_input ), "item-change", p_item->i_id );
+        var_SetInteger( pl_Yield( p_input ), "item-change", p_item->i_id );
+        pl_Release( p_input );
         free( psz_comment );
         i++;
     }




More information about the vlc-devel mailing list