[vlc-devel] [PATCH 5/9] resource: add an assertion

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


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

(This is trivially verified by the only call site.)
---
 src/input/resource.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/input/resource.c b/src/input/resource.c
index 8c16802452..27ce970860 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -623,6 +623,7 @@ void input_resource_StopFreeVout(input_resource_t *p_resource)
 /* */
 sout_instance_t *input_resource_RequestSout( input_resource_t *p_resource, sout_instance_t *p_sout, const char *psz_sout )
 {
+    assert(psz_sout != NULL);
     vlc_mutex_lock( &p_resource->lock );
     sout_instance_t *p_ret = RequestSout( p_resource, p_sout, psz_sout );
     vlc_mutex_unlock( &p_resource->lock );
-- 
2.30.0



More information about the vlc-devel mailing list