[vlc-devel] [PATCH 3/9] resource: inline propagate RequestSout()

remi at remlab.net remi at remlab.net
Tue Jan 19 18:21:08 UTC 2021


From: RĂ©mi Denis-Courmont <remi at remlab.net>

...and input_resource_RequestSout() into input_resource_TerminateSout().
No functional changes.
---
 src/input/resource.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/input/resource.c b/src/input/resource.c
index ff05b5a32b..044fb8b7e5 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -629,7 +629,10 @@ sout_instance_t *input_resource_RequestSout( input_resource_t *p_resource, sout_
 
     return p_ret;
 }
+
 void input_resource_TerminateSout( input_resource_t *p_resource )
 {
-    input_resource_RequestSout( p_resource, NULL, NULL );
+    vlc_mutex_lock( &p_resource->lock );
+    DestroySout(p_resource);
+    vlc_mutex_unlock( &p_resource->lock );
 }
-- 
2.30.0



More information about the vlc-devel mailing list