[vlc-devel] [PATCH 2/2] macosx:Introduce Icecast streaming service
vibhoothiiaanand at gmail.com
vibhoothiiaanand at gmail.com
Thu May 10 22:04:59 CEST 2018
From: vibhoothiiaanand <vibhoothiiaanand at gmail.com>
This adds new condition of mount point to p_shout, if it breaks the condition
outputs with debug log
fixes #17915
---
modules/access_output/shout.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/access_output/shout.c b/modules/access_output/shout.c
index 6bd0776ad9..16a5a2cfdd 100644
--- a/modules/access_output/shout.c
+++ b/modules/access_output/shout.c
@@ -207,7 +207,7 @@ static int Open( vlc_object_t *p_this )
|| shout_set_protocol( p_shout, SHOUT_PROTOCOL_ICY ) != SHOUTERR_SUCCESS
|| shout_set_port( p_shout, url.i_port ) != SHOUTERR_SUCCESS
|| shout_set_password( p_shout, url.psz_password ) != SHOUTERR_SUCCESS
- || shout_set_mount( p_shout, url.psz_path ) != SHOUTERR_SUCCESS
+ || shout_set_mount( p_shout, (url.psz_path != NULL ) ? url.psz_path : "/" ) != SHOUTERR_SUCCESS
|| shout_set_user( p_shout, url.psz_username ) != SHOUTERR_SUCCESS
|| shout_set_agent( p_shout, "VLC media player " VERSION ) != SHOUTERR_SUCCESS
|| shout_set_name( p_shout, psz_name ) != SHOUTERR_SUCCESS
@@ -217,16 +217,14 @@ static int Open( vlc_object_t *p_this )
/* || shout_set_nonblocking( p_shout, 1 ) != SHOUTERR_SUCCESS */
)
{
- msg_Err( p_access, "failed to initialize shout streaming to %s:%i/%s",
- url.psz_host, url.i_port, url.psz_path );
-
+ msg_Err( p_access, "failed to initialize shout streaming to %s:%i/%s; %s [<Hostname>:<port>/<filePath>;<last shout error that occured in this connection> eg,http://server:8000/mpd.ogg.m3u; ]",
+ url.psz_host, url.i_port, url.psz_path,shout_get_error(p_shout) );
free( psz_name );
free( psz_description );
free( psz_genre );
free( psz_url );
goto error;
}
-
free( psz_name );
free( psz_description );
free( psz_genre );
--
2.16.2
More information about the vlc-devel
mailing list