[ekiga] Initialized some variables
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Initialized some variables
- Date: Sun, 2 Jan 2011 15:46:10 +0000 (UTC)
commit c5d3b2e89fbac7998e2688f498d3f00fa5dfdce6
Author: Julien Puydt <jpuydt gnome org>
Date: Wed Dec 29 17:36:54 2010 +0100
Initialized some variables
lib/engine/components/opal/opal-audio.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-audio.cpp b/lib/engine/components/opal/opal-audio.cpp
index d4badc9..ff7fee4 100644
--- a/lib/engine/components/opal/opal-audio.cpp
+++ b/lib/engine/components/opal/opal-audio.cpp
@@ -121,7 +121,7 @@ bool PSoundChannel_EKIGA::Close()
bool PSoundChannel_EKIGA::Write (const void *buf, PINDEX len)
{
- unsigned bytesWritten;
+ unsigned bytesWritten = 0;
if (direction == Player) {
audiooutput_core->set_frame_data((char*)buf, len, bytesWritten);
@@ -134,7 +134,7 @@ bool PSoundChannel_EKIGA::Write (const void *buf, PINDEX len)
bool PSoundChannel_EKIGA::Read (void * buf, PINDEX len)
{
- unsigned bytesRead;
+ unsigned bytesRead = 0;
if (direction == Recorder) {
audioinput_core->get_frame_data((char*)buf, len, bytesRead);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]