]> git.sesse.net Git - vlc/blobdiff - modules/access_output/bonjour.c
Fix DVD LPCM format description in comments.
[vlc] / modules / access_output / bonjour.c
index 6bae0f1044ac38b41cc4ec6b7fb92a503cc2ffa6..3dfb9b888a136860df1342217a7629f9e7dfca92 100644 (file)
@@ -175,7 +175,6 @@ static void client_callback( AvahiClient *c,
 static void* poll_iterate_thread( vlc_object_t *p_this )
 {
     poll_thread_t *p_pt = (poll_thread_t*)p_this;
-    vlc_thread_ready( p_pt );
     int canc = vlc_savecancel ();
 
     while( vlc_object_alive (p_pt) )
@@ -193,16 +192,12 @@ void *bonjour_start_service( vlc_object_t *p_log, const char *psz_stype,
                              const char *psz_name, int i_port, char *psz_txt )
 {
     int err;
-    bonjour_t *p_sys;
 
-    p_sys = (bonjour_t *)malloc( sizeof(*p_sys) );
+    bonjour_t* p_sys = calloc( 1, sizeof(*p_sys) );
     if( p_sys == NULL )
         return NULL;
 
-    memset( p_sys, 0, sizeof(*p_sys) );
-
     p_sys->p_log = p_log;
-
     p_sys->i_port = i_port;
     p_sys->psz_name = avahi_strdup( psz_name );
     p_sys->psz_stype = avahi_strdup( psz_stype );
@@ -241,7 +236,7 @@ void *bonjour_start_service( vlc_object_t *p_log, const char *psz_stype,
 
     if( vlc_thread_create( p_sys->poll_thread, "Avahi Poll Iterate Thread",
                            poll_iterate_thread,
-                           VLC_THREAD_PRIORITY_HIGHEST, false ) )
+                           VLC_THREAD_PRIORITY_HIGHEST ) )
     {
         msg_Err( p_sys->p_log, "failed to create poll iterate thread" );
         goto error;