[vlc-commits] lib: renderer_discoverer: Allow a renderer_discoverer to be stopped then released

Hugo Beauzée-Luyssen git at videolan.org
Wed Mar 21 16:53:33 CET 2018


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Mar 21 15:34:57 2018 +0100| [8e00ce7edd7051d372b6107a50a1600ec3a02a9c] | committer: Hugo Beauzée-Luyssen

lib: renderer_discoverer: Allow a renderer_discoverer to be stopped then released

(cherry picked from commit 9bcd1e0721c16dc9e7f19c63c566ad0645499e1d)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 lib/renderer_discoverer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/renderer_discoverer.c b/lib/renderer_discoverer.c
index f66f5d1e0c..67b81f4bf1 100644
--- a/lib/renderer_discoverer.c
+++ b/lib/renderer_discoverer.c
@@ -174,7 +174,10 @@ void
 libvlc_renderer_discoverer_stop( libvlc_renderer_discoverer_t *p_lrd )
 {
     if( p_lrd->p_rd != NULL )
+    {
         vlc_rd_release( p_lrd->p_rd );
+        p_lrd->p_rd = NULL;
+    }
 
     for( int i = 0; i < p_lrd->i_items; ++i )
         vlc_renderer_item_release( p_lrd->pp_items[i] );



More information about the vlc-commits mailing list