Merge branch 'awakecoding' of github.com:vworkspace/FreeRDP
This commit is contained in:
commit
d95af00117
@ -10,5 +10,14 @@ find_library(PULSE_LIBRARY pulse PATHS ${PULSE_LIBRARY_DIRS})
|
||||
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Pulse DEFAULT_MSG PULSE_INCLUDE_DIR PULSE_LIBRARY)
|
||||
|
||||
mark_as_advanced(PULSE_INCLUDE_DIR PULSE_LIBRARY)
|
||||
if(PULSE_LIBRARY)
|
||||
execute_process(COMMAND "pactl" "--version" OUTPUT_VARIABLE PULSE_VERSION_OUTPUT)
|
||||
|
||||
STRING(REGEX MATCH "[0-9]+.[0-9]+.[0-9]+" PULSE_VERSION "${PULSE_VERSION_OUTPUT}")
|
||||
if(NOT PULSE_VERSION)
|
||||
message(FATAL_ERROR "PulseAudio is not installed")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
mark_as_advanced(PULSE_INCLUDE_DIR PULSE_LIBRARY PULSE_VERSION)
|
||||
|
||||
|
@ -123,13 +123,16 @@ static int freerdp_peer_virtual_channel_write(freerdp_peer* client, HANDLE hChan
|
||||
UINT32 chunkSize;
|
||||
UINT32 maxChunkSize;
|
||||
UINT32 totalLength;
|
||||
rdpPeerChannel* peerChannel;
|
||||
rdpMcsChannel* mcsChannel;
|
||||
rdpRdp* rdp = client->context->rdp;
|
||||
rdpPeerChannel* peerChannel = (rdpPeerChannel*) hChannel;
|
||||
rdpMcsChannel* mcsChannel = peerChannel->mcsChannel;
|
||||
|
||||
if (!hChannel)
|
||||
return -1;
|
||||
|
||||
peerChannel = (rdpPeerChannel*) hChannel;
|
||||
mcsChannel = peerChannel->mcsChannel;
|
||||
|
||||
if (peerChannel->channelFlags & WTS_CHANNEL_OPTION_DYNAMIC)
|
||||
return -1; /* not yet supported */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user