mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 05:23:12 -07:00
Fix some Uninitialized Memory
This commit is contained in:
parent
96cbd5d9b8
commit
7785c310a9
4 changed files with 6 additions and 2 deletions
|
@ -102,11 +102,12 @@ StreamSession::StreamSession(const StreamSessionConnectInfo &connect_info, QObje
|
||||||
|
|
||||||
QByteArray host_str = connect_info.host.toUtf8();
|
QByteArray host_str = connect_info.host.toUtf8();
|
||||||
|
|
||||||
ChiakiConnectInfo chiaki_connect_info;
|
ChiakiConnectInfo chiaki_connect_info = {};
|
||||||
chiaki_connect_info.ps5 = chiaki_target_is_ps5(connect_info.target);
|
chiaki_connect_info.ps5 = chiaki_target_is_ps5(connect_info.target);
|
||||||
chiaki_connect_info.host = host_str.constData();
|
chiaki_connect_info.host = host_str.constData();
|
||||||
chiaki_connect_info.video_profile = connect_info.video_profile;
|
chiaki_connect_info.video_profile = connect_info.video_profile;
|
||||||
chiaki_connect_info.video_profile_auto_downgrade = true;
|
chiaki_connect_info.video_profile_auto_downgrade = true;
|
||||||
|
chiaki_connect_info.enable_keyboard = false;
|
||||||
|
|
||||||
#if CHIAKI_LIB_ENABLE_PI_DECODER
|
#if CHIAKI_LIB_ENABLE_PI_DECODER
|
||||||
if(connect_info.decoder == Decoder::Pi && chiaki_connect_info.video_profile.codec != CHIAKI_CODEC_H264)
|
if(connect_info.decoder == Decoder::Pi && chiaki_connect_info.video_profile.codec != CHIAKI_CODEC_H264)
|
||||||
|
|
|
@ -48,6 +48,8 @@ CHIAKI_EXPORT void chiaki_frame_processor_init(ChiakiFrameProcessor *frame_proce
|
||||||
frame_processor->buf_stride_per_unit = 0;
|
frame_processor->buf_stride_per_unit = 0;
|
||||||
frame_processor->units_source_expected = 0;
|
frame_processor->units_source_expected = 0;
|
||||||
frame_processor->units_fec_expected = 0;
|
frame_processor->units_fec_expected = 0;
|
||||||
|
frame_processor->units_source_received = 0;
|
||||||
|
frame_processor->units_fec_received = 0;
|
||||||
frame_processor->unit_slots = NULL;
|
frame_processor->unit_slots = NULL;
|
||||||
frame_processor->unit_slots_size = 0;
|
frame_processor->unit_slots_size = 0;
|
||||||
frame_processor->flushed = true;
|
frame_processor->flushed = true;
|
||||||
|
|
|
@ -361,7 +361,7 @@ static ChiakiErrorCode senkusha_run_mtu_in_test(ChiakiSenkusha *senkusha, uint32
|
||||||
senkusha->state_failed = false;
|
senkusha->state_failed = false;
|
||||||
senkusha->mtu_id = ++request_id;
|
senkusha->mtu_id = ++request_id;
|
||||||
|
|
||||||
tkproto_SenkushaMtuCommand mtu_cmd;
|
tkproto_SenkushaMtuCommand mtu_cmd = { 0 };
|
||||||
mtu_cmd.id = request_id;
|
mtu_cmd.id = request_id;
|
||||||
mtu_cmd.mtu_req = cur;
|
mtu_cmd.mtu_req = cur;
|
||||||
mtu_cmd.num = 1;
|
mtu_cmd.num = 1;
|
||||||
|
|
|
@ -17,6 +17,7 @@ CHIAKI_EXPORT void chiaki_video_receiver_init(ChiakiVideoReceiver *video_receive
|
||||||
|
|
||||||
video_receiver->frame_index_cur = -1;
|
video_receiver->frame_index_cur = -1;
|
||||||
video_receiver->frame_index_prev = -1;
|
video_receiver->frame_index_prev = -1;
|
||||||
|
video_receiver->frame_index_prev_complete = 0;
|
||||||
|
|
||||||
chiaki_frame_processor_init(&video_receiver->frame_processor, video_receiver->log);
|
chiaki_frame_processor_init(&video_receiver->frame_processor, video_receiver->log);
|
||||||
video_receiver->packet_stats = packet_stats;
|
video_receiver->packet_stats = packet_stats;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue