Skip to content

Commit

Permalink
Merge pull request #79 from sashabjorkman/master
Browse files Browse the repository at this point in the history
Fix the AudioWrapper constructor to be more like the VideoWrapper
  • Loading branch information
murat-dogan authored Feb 17, 2022
2 parents fa1e4ad + a8c6a6a commit 6be2add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/media-audio-wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ AudioWrapper::AudioWrapper(const Napi::CallbackInfo &info) : Napi::ObjectWrap<Au
rtc::Description::Direction dir = rtc::Description::Direction::SendOnly;

// optional
if (length > 1)
if (length > 0)
{
if (!info[0].IsString())
{
Expand All @@ -62,7 +62,7 @@ AudioWrapper::AudioWrapper(const Napi::CallbackInfo &info) : Napi::ObjectWrap<Au
}

// ootional
if (length > 2)
if (length > 1)
{
if (!info[1].IsString())
{
Expand Down

0 comments on commit 6be2add

Please sign in to comment.