[vlc-commits] codec:lpcm: remove local cast

Steve Lhomme git at videolan.org
Fri Jul 21 13:26:14 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Jul 19 13:05:55 2017 +0200| [937d95de6e00dcc7b568f438e27a196fb76675ab] | committer: Jean-Baptiste Kempf

codec:lpcm: remove local cast

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/lpcm.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index bf9e3d6878..b5ed190364 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -214,9 +214,8 @@ static int WidiHeader( unsigned *pi_rate,
 /*****************************************************************************
  * OpenCommon:
  *****************************************************************************/
-static int OpenCommon( vlc_object_t *p_this, bool b_packetizer )
+static int OpenCommon( decoder_t *p_dec, bool b_packetizer )
 {
-    decoder_t *p_dec = (decoder_t*)p_this;
     decoder_sys_t *p_sys;
     int i_type;
     int i_header_size;
@@ -304,11 +303,11 @@ static int OpenCommon( vlc_object_t *p_this, bool b_packetizer )
 }
 static int OpenDecoder( vlc_object_t *p_this )
 {
-    return OpenCommon( p_this, false );
+    return OpenCommon( (decoder_t*) p_this, false );
 }
 static int OpenPacketizer( vlc_object_t *p_this )
 {
-    return OpenCommon( p_this, true );
+    return OpenCommon( (decoder_t*) p_this, true );
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list