[vlc-commits] resource: add an assertion

Rémi Denis-Courmont git at videolan.org
Thu Jan 21 19:56:04 UTC 2021


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jan 19 20:03:13 2021 +0200| [a2c0bd0824c08f64051b236e40ad5398ac38116e] | committer: Rémi Denis-Courmont

resource: add an assertion

(This is trivially verified by the only call site.)

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

 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 );



More information about the vlc-commits mailing list