[vlc-devel] commit: memset outside of lock ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Aug 31 11:05:10 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Aug 30 23:49:36 2008 +0300| [2734c1b4d4f9ddbeff77ad5929c60d486a3151bf] | committer: Rémi Denis-Courmont
memset outside of lock
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2734c1b4d4f9ddbeff77ad5929c60d486a3151bf
---
src/input/es_out.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index b105356..ca6780b 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1039,8 +1039,8 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
es->i_channel = p_sys->i_audio;
- vlc_mutex_lock( &p_input->p->input.p_item->lock );
memset( &rg, 0, sizeof(rg) );
+ vlc_mutex_lock( &p_input->p->input.p_item->lock );
vlc_audio_replay_gain_MergeFromMeta( &rg, p_input->p->input.p_item->p_meta );
vlc_mutex_unlock( &p_input->p->input.p_item->lock );
More information about the vlc-devel
mailing list