[vlc-commits] shout: fix dst parameter backward compatibility (fixes #19659)

Rémi Denis-Courmont git at videolan.org
Mon Feb 12 22:28:36 CET 2018


vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Feb 12 23:26:13 2018 +0200| [14ea97de65eeef9823de149eac9b0c777fcc73f2] | committer: Rémi Denis-Courmont

shout: fix dst parameter backward compatibility (fixes #19659)

(cherry picked from commit edc566d489e104b534c08117ee50d016d80a6923)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/access_output/shout.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/access_output/shout.c b/modules/access_output/shout.c
index 59a5fe3bd1..fbc81a0ddd 100644
--- a/modules/access_output/shout.c
+++ b/modules/access_output/shout.c
@@ -187,6 +187,15 @@ static int Open( vlc_object_t *p_this )
     if( url.i_port <= 0 )
         url.i_port = 8000;
 
+    if( url.psz_host == NULL )
+    {   /* Backward compatibility with bind at path syntax */
+        vlc_UrlClean( &url );
+        if( unlikely(asprintf( &psz_url, "//%s", p_access->psz_path ) == -1) )
+            return VLC_ENOMEM;
+        vlc_UrlParse( &url, psz_url );
+        free( psz_url );
+    }
+
     p_sys = p_access->p_sys = malloc( sizeof( sout_access_out_sys_t ) );
     if( !p_sys )
     {



More information about the vlc-commits mailing list