[vlc-devel] commit: Removed useless non-const static variable in decoder.c ( Laurent Aimar )

git version control git at videolan.org
Sun Feb 15 00:44:14 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 14 15:52:58 2009 +0100| [da546e4e95fef045168d30b37eb2200149fbd848] | committer: Laurent Aimar 

Removed useless non-const static variable in decoder.c

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

 src/input/decoder.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 9c2e271..47538bb 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -77,8 +77,6 @@ static void vout_unlink_picture( decoder_t *, picture_t * );
 static subpicture_t *spu_new_buffer( decoder_t * );
 static void spu_del_buffer( decoder_t *, subpicture_t * );
 
-static es_format_t null_es_format;
-
 struct decoder_owner_sys_t
 {
     int64_t         i_preroll_end;
@@ -694,6 +692,8 @@ static decoder_t * CreateDecoder( input_thread_t *p_input,
 {
     decoder_t *p_dec;
     decoder_owner_sys_t *p_owner;
+    es_format_t null_es_format;
+
     int i;
 
     p_dec = vlc_object_create( p_input, i_object_type );




More information about the vlc-devel mailing list