From 7913df2296a3d2b97abce87cd916c8572b16084a Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 28 Feb 2009 19:37:07 +0200 Subject: [PATCH] str_format_meta: take the input stats lock as needed --- src/text/strings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/text/strings.c b/src/text/strings.c index b76d14c46f..ee0085e7e7 100644 --- a/src/text/strings.c +++ b/src/text/strings.c @@ -742,8 +742,10 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string ) case 'f': if( p_item && p_item->p_stats ) { + vlc_mutex_lock( &p_item->p_stats->lock ); snprintf( buf, 10, "%d", p_item->p_stats->i_displayed_pictures ); + vlc_mutex_unlock( &p_item->p_stats->lock ); } else { -- 2.39.2