Memcpy the correct amount of data when copying track metadata.
This fixes various issues with invalid opensles metadata,
such as the google voice app not playing voicemail via the phone app.
Change-Id: Ic923fbb9016716829f89d73274af37cb851dd7c3
Signed-off-by: Eric McCann <nuclearmistake@gmail.com>
diff --git a/src/android/AudioPlayer_to_android.cpp b/src/android/AudioPlayer_to_android.cpp
index e1b2cb1..ae3083c 100644
--- a/src/android/AudioPlayer_to_android.cpp
+++ b/src/android/AudioPlayer_to_android.cpp
@@ -1906,7 +1906,7 @@
res = SL_RESULT_PARAMETER_INVALID;
} else {
pValue->size = valueSize;
- memcpy(&pValue->data, &valueData, sizeof(pValue->data));
+ memcpy(&pValue->data, &valueData, sizeof(SLuint32));
}
}
break;