[vlc-commits] stream_out_select: no need for a tmp buffer to msg_Info()
Rafaël Carré
git at videolan.org
Sun Jun 19 17:59:16 CEST 2011
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sun Jun 19 11:51:26 2011 -0400| [e61839ace5d9bf6c0b06dd94208d688ef0613ddb] | committer: Rafaël Carré
stream_out_select: no need for a tmp buffer to msg_Info()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e61839ace5d9bf6c0b06dd94208d688ef0613ddb
---
modules/stream_out/select.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/modules/stream_out/select.c b/modules/stream_out/select.c
index d2c7e65..ffeefcf 100644
--- a/modules/stream_out/select.c
+++ b/modules/stream_out/select.c
@@ -203,11 +203,9 @@ static void* Command(void *p_this)
mutex_cleanup_push(&p_sys->es_lock);
for (int i = 0; i < p_sys->i_es_num; i++)
{
- i_len = snprintf(psz_buffer, sizeof(psz_buffer), "%.4s : %d",
+ msg_Info(p_stream, "%.4s : %d",
(char *)&p_sys->pp_es[i]->fmt.i_codec,
p_sys->pp_es[i]->fmt.i_id);
- psz_buffer[i_len] = '\0';
- msg_Info(p_stream, psz_buffer);
}
vlc_cleanup_pop();
}
More information about the vlc-commits
mailing list