[vlc-commits] codec/ttml: fix callback type

Rémi Denis-Courmont git at videolan.org
Wed Jul 24 21:30:09 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 24 22:26:23 2019 +0300| [3d9a499f0424bb70c935e81a2b982ea2d98ee3f0] | committer: Rémi Denis-Courmont

codec/ttml: fix callback type

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

 modules/codec/ttml/ttml.h | 2 +-
 modules/demux/ttml.c      | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/codec/ttml/ttml.h b/modules/codec/ttml/ttml.h
index d375597632..607ed18014 100644
--- a/modules/codec/ttml/ttml.h
+++ b/modules/codec/ttml/ttml.h
@@ -19,7 +19,7 @@
  *****************************************************************************/
 
 int tt_OpenDemux( vlc_object_t* p_this );
-void tt_CloseDemux( demux_t* p_demux );
+void tt_CloseDemux( vlc_object_t* p_demux );
 
 int  tt_OpenDecoder   ( vlc_object_t * );
 void tt_CloseDecoder  ( vlc_object_t * );
diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c
index 0579dbe1a6..c2b418d65d 100644
--- a/modules/demux/ttml.c
+++ b/modules/demux/ttml.c
@@ -532,13 +532,14 @@ int tt_OpenDemux( vlc_object_t* p_this )
     return VLC_SUCCESS;
 
 error:
-    tt_CloseDemux( p_demux );
+    tt_CloseDemux( p_this );
 
     return VLC_EGENERIC;
 }
 
-void tt_CloseDemux( demux_t* p_demux )
+void tt_CloseDemux( vlc_object_t* p_this )
 {
+    demux_t *p_demux = (demux_t *)p_this;
     demux_sys_t* p_sys = p_demux->p_sys;
 
     if( p_sys->p_rootnode )



More information about the vlc-commits mailing list