Commit 9bf18d7a authored by Clément Stenac's avatar Clément Stenac

* modules/visualisation/visual/visual.c: thou shall not use //

* modules/access/slp.c : do not add udp:@ automatically

* modules/stream_out/announce.c : always use the same service name
				  add udp:@ (hack !)
parent 69fd5c2f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* slp.c: SLP access plugin * slp.c: SLP access plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: slp.c,v 1.15 2003/09/07 22:49:05 fenrir Exp $ * $Id: slp.c,v 1.16 2003/09/14 16:41:48 zorglub Exp $
* *
* Authors: Loc Minier <lool@videolan.org> * Authors: Loc Minier <lool@videolan.org>
* *
...@@ -134,7 +134,7 @@ static SLPBoolean SrvUrlCallback( SLPHandle slph_slp, ...@@ -134,7 +134,7 @@ static SLPBoolean SrvUrlCallback( SLPHandle slph_slp,
{ {
input_thread_t * p_input = (input_thread_t *)p_cookie; input_thread_t * p_input = (input_thread_t *)p_cookie;
playlist_t * p_playlist; playlist_t * p_playlist;
char psz_item[42] = "udp:@"; char psz_item[42] = ""; //"udp:@";
char * psz_s; /* to hold the uri of the stream */ char * psz_s; /* to hold the uri of the stream */
SLPHandle slph_slp3; SLPHandle slph_slp3;
SLPError slpe_result; SLPError slpe_result;
......
...@@ -406,15 +406,17 @@ static char * sout_SLPBuildName(char *psz_url,char *psz_name) ...@@ -406,15 +406,17 @@ static char * sout_SLPBuildName(char *psz_url,char *psz_name)
char *psz_service; char *psz_service;
unsigned int i_size; unsigned int i_size;
/* name to build is: service:$(name).videolan://$(url) */ /* name to build is: service:vlc.services.videolan://$(url) */
i_size = 8 + strlen(psz_name) + 12 + strlen(psz_url) + 1; i_size = 8 + 12 + 12 + 5 + strlen(psz_url) + 1;
psz_service=(char *)malloc(i_size * sizeof(char)); psz_service=(char *)malloc(i_size * sizeof(char));
snprintf( psz_service , i_size, snprintf( psz_service , i_size,
"service:%s.videolan://%s", "service:vlc.services.videolan://udp:@%s",
psz_name,psz_url); psz_url);
/* How piggy ! */
psz_service[i_size]='\0'; /* Just to make sure */ psz_service[i_size]='\0'; /* Just to make sure */
return psz_service; return psz_service;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* visual.c : Visualisation system * visual.c : Visualisation system
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: visual.c,v 1.6 2003/09/10 10:21:09 zorglub Exp $ * $Id: visual.c,v 1.7 2003/09/14 16:41:48 zorglub Exp $
* *
* Authors: Clment Stenac <zorglub@via.ecp.fr> * Authors: Clment Stenac <zorglub@via.ecp.fr>
* *
...@@ -73,8 +73,6 @@ static void DoWork ( aout_instance_t *, aout_filter_t *, aout_buffer_t *, ...@@ -73,8 +73,6 @@ static void DoWork ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
#define STARS_LONGTEXT N_( \ #define STARS_LONGTEXT N_( \
"Defines the number of stars to draw with random effect" ) "Defines the number of stars to draw with random effect" )
//static char *effect_list[] = { "dummy", "random", "scope", "spectrum", NULL };
vlc_module_begin(); vlc_module_begin();
add_category_hint( N_("visualizer") , NULL , VLC_FALSE); add_category_hint( N_("visualizer") , NULL , VLC_FALSE);
set_description( _("visualizer filter") ); set_description( _("visualizer filter") );
...@@ -176,7 +174,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -176,7 +174,7 @@ static int Open( vlc_object_t *p_this )
} }
p_current_effect = p_current_effect -> p_next; p_current_effect = p_current_effect -> p_next;
p_current_effect->psz_func = NULL; p_current_effect->psz_func = strdup("dummy");
p_current_effect->p_next = NULL; p_current_effect->p_next = NULL;
p_current_effect->i_width = p_filter->p_sys->i_width; p_current_effect->i_width = p_filter->p_sys->i_width;
p_current_effect->i_height = p_filter->p_sys->i_height; p_current_effect->i_height = p_filter->p_sys->i_height;
...@@ -196,8 +194,8 @@ static int Open( vlc_object_t *p_this ) ...@@ -196,8 +194,8 @@ static int Open( vlc_object_t *p_this )
#endif #endif
if(! ( strncasecmp(psz_effects,"dummy",5) && if(! ( strncasecmp(psz_effects,"dummy",5) &&
strncasecmp(psz_effects,"scope",5) && strncasecmp(psz_effects,"scope",5) &&
strncasecmp(psz_effects,"spectrum",5) && strncasecmp(psz_effects,"spectrum",8) &&
strncasecmp(psz_effects,"random",5) ) ) strncasecmp(psz_effects,"random",6) ) )
p_current_effect->psz_func = strdup( psz_effects ) ; p_current_effect->psz_func = strdup( psz_effects ) ;
p_current_effect->psz_args = NULL; p_current_effect->psz_args = NULL;
...@@ -228,19 +226,19 @@ static int Open( vlc_object_t *p_this ) ...@@ -228,19 +226,19 @@ static int Open( vlc_object_t *p_this )
/* Open the video output */ /* Open the video output */
p_filter->p_sys->p_vout = p_filter->p_sys->p_vout =
/* vout_Request( p_filter, NULL, vout_Request( p_filter, NULL,
p_filter->p_sys->i_width, p_filter->p_sys->i_width,
p_filter->p_sys->i_height, p_filter->p_sys->i_height,
VLC_FOURCC('I','4','2','0'), VLC_FOURCC('I','4','2','0'),
VOUT_ASPECT_FACTOR * p_filter->p_sys->i_width/ VOUT_ASPECT_FACTOR * p_filter->p_sys->i_width/
p_filter->p_sys->i_height ); */ p_filter->p_sys->i_height );
vout_Create( p_filter, /* vout_Create( p_filter,
p_filter->p_sys->i_width, p_filter->p_sys->i_width,
p_filter->p_sys->i_height, p_filter->p_sys->i_height,
VLC_FOURCC('I','4','2','0'), VLC_FOURCC('I','4','2','0'),
VOUT_ASPECT_FACTOR * p_filter->p_sys->i_width/ VOUT_ASPECT_FACTOR * p_filter->p_sys->i_width/
p_filter->p_sys->i_height ); p_filter->p_sys->i_height );*/
if( p_filter->p_sys->p_vout == NULL ) if( p_filter->p_sys->p_vout == NULL )
{ {
...@@ -281,7 +279,7 @@ static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter, ...@@ -281,7 +279,7 @@ static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter,
{ {
if(p_aout->b_die ) if(p_aout->b_die )
return; return;
msleep( 2 ); msleep( VOUT_OUTMEM_SLEEP );
} }
/* Blank the picture */ /* Blank the picture */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment