[vlc-commits] gst: fix variable shadowing
Rémi Denis-Courmont
git at videolan.org
Sun Oct 21 13:01:20 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 21 12:39:29 2018 +0300| [a36137e7d881c5fde8792cb741f8ee3a7ee50e60] | committer: Rémi Denis-Courmont
gst: fix variable shadowing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a36137e7d881c5fde8792cb741f8ee3a7ee50e60
---
modules/codec/gstreamer/gstdecode.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/codec/gstreamer/gstdecode.c b/modules/codec/gstreamer/gstdecode.c
index ca58e6d599..e1e9ee234f 100644
--- a/modules/codec/gstreamer/gstdecode.c
+++ b/modules/codec/gstreamer/gstdecode.c
@@ -662,7 +662,6 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block )
picture_t *p_pic = NULL;
decoder_sys_t *p_sys = p_dec->p_sys;
GstMessage *p_msg;
- GstBuffer *p_buf;
if( !p_block ) /* No Drain */
return VLCDEC_SUCCESS;
@@ -682,6 +681,8 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block )
if( likely( p_block->i_buffer ) )
{
+ GstBuffer *p_buf;
+
p_buf = gst_buffer_new_wrapped_full( GST_MEMORY_FLAG_READONLY,
p_block->p_start, p_block->i_size,
p_block->p_buffer - p_block->p_start, p_block->i_buffer,
More information about the vlc-commits
mailing list