[vlc-devel] [PATCH 7/9] resource: inline RequestSout()
remi at remlab.net
remi at remlab.net
Tue Jan 19 18:21:12 UTC 2021
From: RĂ©mi Denis-Courmont <remi at remlab.net>
... into input_resource_PutSout() - with constant expansion.
(No functional changes, except trivially if !ENABLE_SOUT)
---
src/input/resource.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/input/resource.c b/src/input/resource.c
index d2c1ab844f..f4af95f39e 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -633,8 +633,15 @@ sout_instance_t *input_resource_RequestSout( input_resource_t *p_resource, const
void input_resource_PutSout(input_resource_t *resource, sout_instance_t *sout)
{
+ if (sout == NULL)
+ {
+ input_resource_TerminateSout(resource);
+ return;
+ }
+
vlc_mutex_lock(&resource->lock);
- RequestSout(resource, sout, NULL);
+ assert(resource->p_sout == NULL);
+ resource->p_sout = sout;
vlc_mutex_unlock(&resource->lock);
}
--
2.30.0
More information about the vlc-devel
mailing list