[vlc-commits] commit: Remove calls to bzero. ( Rémi Duraffort )

git at videolan.org git at videolan.org
Sat Nov 6 18:35:56 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Nov  6 18:28:28 2010 +0100| [be87c5ee96e5c38ddff31980a791d71df8350818] | committer: Rémi Duraffort 

Remove calls to bzero.

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

 modules/audio_output/pulse.c |    2 +-
 modules/gui/macosx/vout.m    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index e800c43..8e0288f 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -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;
         }
diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 7ba7264..c5b87ab 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -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];



More information about the vlc-commits mailing list