[vlc-commits] omxil: Remove an unused struct member

Martin Storsjö git at videolan.org
Mon Mar 11 15:48:21 CET 2013


vlc | branch: master | Martin Storsjö <martin at martin.st> | Mon Mar 11 16:47:10 2013 +0200| [d40d7cfb3b94b2b7f196895772ecbe287da7479d] | committer: Martin Storsjö

omxil: Remove an unused struct member

Additionally, the mutex never seem to have been released but
just leaked.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 modules/codec/omxil/omxil.c |    1 -
 modules/codec/omxil/omxil.h |    1 -
 2 files changed, 2 deletions(-)

diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index 05019fa..c9c079f 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -928,7 +928,6 @@ loaded:
     p_sys->pp_last_event = &p_sys->p_events;
     vlc_mutex_init (&p_sys->mutex);
     vlc_cond_init (&p_sys->cond);
-    vlc_mutex_init (&p_sys->lock);
     vlc_mutex_init (&p_sys->in.fifo.lock);
     vlc_cond_init (&p_sys->in.fifo.wait);
     p_sys->in.fifo.offset = offsetof(OMX_BUFFERHEADERTYPE, pOutputPortPrivate) / sizeof(void *);
diff --git a/modules/codec/omxil/omxil.h b/modules/codec/omxil/omxil.h
index 45a7ed1..ceb420a 100644
--- a/modules/codec/omxil/omxil.h
+++ b/modules/codec/omxil/omxil.h
@@ -81,7 +81,6 @@ struct decoder_sys_t
 
     bool b_enc;
     bool b_init;
-    vlc_mutex_t lock;
 
     char psz_component[OMX_MAX_STRINGNAME_SIZE];
     char ppsz_components[MAX_COMPONENTS_LIST_SIZE][OMX_MAX_STRINGNAME_SIZE];



More information about the vlc-commits mailing list