[vlc-commits] visual: use vout_Close() directly

Rémi Denis-Courmont git at videolan.org
Fri Jan 18 22:13:09 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jan 18 23:09:21 2019 +0200| [a010b59b0bdf6bb2e33511ec1299214a231dfa6e] | committer: Rémi Denis-Courmont

visual: use vout_Close() directly

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

 modules/visualization/visual/visual.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/visualization/visual/visual.c b/modules/visualization/visual/visual.c
index 9458da3be4..4e83a6245f 100644
--- a/modules/visualization/visual/visual.c
+++ b/modules/visualization/visual/visual.c
@@ -311,7 +311,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->fifo = block_FifoNew();
     if( unlikely( p_sys->fifo == NULL ) )
     {
-        aout_filter_PutVout( p_filter, p_sys->p_vout );
+        vout_Close( p_sys->p_vout );
         goto error;
     }
 
@@ -319,7 +319,7 @@ static int Open( vlc_object_t *p_this )
                    VLC_THREAD_PRIORITY_VIDEO ) )
     {
         block_FifoRelease( p_sys->fifo );
-        aout_filter_PutVout( p_filter, p_sys->p_vout );
+        vout_Close( p_sys->p_vout );
         goto error;
     }
 
@@ -407,7 +407,7 @@ static void Close( vlc_object_t *p_this )
     vlc_cancel( p_sys->thread );
     vlc_join( p_sys->thread, NULL );
     block_FifoRelease( p_sys->fifo );
-    aout_filter_PutVout( p_filter, p_sys->p_vout );
+    vout_Close( p_sys->p_vout );
 
     /* Free the list */
     for( int i = 0; i < p_sys->i_effect; i++ )



More information about the vlc-commits mailing list