Fix stream video
This commit is contained in:
parent
af9c719d69
commit
ef9a38a104
@ -895,9 +895,9 @@ void Handshake::processHandshakeResponse(TLObject *message, int64_t messageId) {
|
||||
}
|
||||
|
||||
void Handshake::sendAckRequest(int64_t messageId) {
|
||||
/*auto msgsAck = new TL_msgs_ack();
|
||||
auto msgsAck = new TL_msgs_ack();
|
||||
msgsAck->msg_ids.push_back(messageId);
|
||||
sendRequestData(msgsAck, false);*/
|
||||
sendRequestData(msgsAck, false);
|
||||
}
|
||||
|
||||
TLObject *Handshake::getCurrentHandshakeRequest() {
|
||||
|
@ -1,10 +1,10 @@
|
||||
cmake_minimum_required(VERSION 3.6.0)
|
||||
|
||||
#libvpx_yasm
|
||||
#if (${ANDROID_ABI} STREQUAL "x86" OR ${ANDROID_ABI} STREQUAL "x86_64")
|
||||
#add_library(libvpx_yasm STATIC IMPORTED)
|
||||
#set_target_properties(libvpx_yasm PROPERTIES IMPORTED_LOCATION ${CMAKE_HOME_DIRECTORY}/third_party/libvpx/source/libvpx/vpx_dsp/x86/libvpx_${ANDROID_ABI}_yasm.a)
|
||||
#endif()
|
||||
if (${ANDROID_ABI} STREQUAL "x86" OR ${ANDROID_ABI} STREQUAL "x86_64")
|
||||
add_library(libvpx_yasm STATIC IMPORTED)
|
||||
set_target_properties(libvpx_yasm PROPERTIES IMPORTED_LOCATION ${CMAKE_HOME_DIRECTORY}/third_party/libvpx/source/libvpx/vpx_dsp/x86/libvpx_${ANDROID_ABI}_yasm.a)
|
||||
endif()
|
||||
|
||||
#tgvoip
|
||||
add_library(tgvoip STATIC
|
||||
|
@ -298,6 +298,12 @@ public:
|
||||
int outPcmSampleOffset = 0;
|
||||
ReadPcmResult result;
|
||||
|
||||
if(_channelCount==0)
|
||||
{
|
||||
RTC_LOG(LS_WARNING) << "_channelCount == 0, returned.";
|
||||
return result;
|
||||
}
|
||||
|
||||
int readSamples = (int)outPcm.size() / _channelCount;
|
||||
|
||||
result.numChannels = _channelCount;
|
||||
|
Loading…
Reference in New Issue
Block a user