]> git.sesse.net Git - vlc/commitdiff
Remove calls to bzero.
authorRémi Duraffort <ivoire@videolan.org>
Sat, 6 Nov 2010 17:28:28 +0000 (18:28 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sat, 6 Nov 2010 17:29:37 +0000 (18:29 +0100)
modules/audio_output/pulse.c
modules/gui/macosx/vout.m

index e800c434836cc2b82b463e971526dcc3d24ce7db..8e0288ff40ae3fbc028bf471c660d5a026129678 100644 (file)
@@ -476,7 +476,7 @@ static void stream_request_cb(pa_stream *s, size_t length, void *userdata) {
         {
             PULSE_DEBUG( "Pulse stream request write zeroes");
             void *data = pa_xmalloc(buffer_size);
-            bzero(data, buffer_size);
+            memset(data, 0, buffer_size);
             pa_stream_write(p_sys->stream, data, buffer_size, pa_xfree, 0, PA_SEEK_RELATIVE);
             length -= buffer_size;
         }
index 7ba72647b5539b71c209e58a0c5b61d175084f26..c5b87ab54ab0fd294b969bebe817a176bd810ba9 100644 (file)
@@ -753,7 +753,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
     if( o_return == nil )
     {
         NSRect null_rect;
-        bzero( &null_rect, sizeof( NSRect ) );
+        memset( &null_rect, 0, sizeof( NSRect ) );
         o_return = [[VLCDetachedVoutView alloc] initWithFrame: null_rect ];
     }
     [o_return setVout: p_vout subView: view frame: s_frame];