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

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


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

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

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

 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 70139454bc..6bd0776ad9 100644
--- a/modules/access_output/shout.c
+++ b/modules/access_output/shout.c
@@ -180,6 +180,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