Skip to content

Commit

Permalink
Update unstreamable content display message to work for some edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
streetpea committed Dec 16, 2024
1 parent 51fdfe6 commit 7c52921
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,9 @@ static void ctrl_message_received_login_pin_req(ChiakiCtrl *ctrl, uint8_t *paylo
static void ctrl_message_received_displaya(ChiakiCtrl *ctrl, uint8_t *payload, size_t payload_size)
{
if(payload[0] == 0x1)
{
ctrl->cant_displaya = true;
}
else if (payload[0] == 0x0 && !ctrl->cant_displayb)
{
ctrl->cant_displaya = false;
Expand All @@ -887,7 +889,7 @@ static void ctrl_message_received_displayb(ChiakiCtrl *ctrl, uint8_t *payload, s
{
if(ctrl->cant_displaya == true)
{
if(payload[0] == 0x00 && payload[1] == 0x00 && !ctrl->cant_displayb)
if(!(payload[0] == 0x01 && payload[1] == 0xff) && !ctrl->cant_displayb)
{
ctrl->session->display_sink.cantdisplay_cb(ctrl->session->display_sink.user, true);
CHIAKI_LOGI(ctrl->session->log, "Ctrl received message that the stream can't display due to displaying some content that can't be streamed.");
Expand Down

0 comments on commit 7c52921

Please sign in to comment.