Skip to content

Commit

Permalink
Revert flushing frame early
Browse files Browse the repository at this point in the history
  • Loading branch information
streetpea committed Mar 28, 2024
1 parent 0a83aae commit ce0d570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/videoreceiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ CHIAKI_EXPORT void chiaki_video_receiver_av_packet(ChiakiVideoReceiver *video_re
if(video_receiver->frame_index_cur != video_receiver->frame_index_prev)
{
// if we already have enough for the whole frame, flush it already
if(chiaki_frame_processor_flush_possible(&video_receiver->frame_processor) || packet->unit_index == packet->units_in_frame_total - 1)
if(chiaki_frame_processor_flush_possible(&video_receiver->frame_processor))
chiaki_video_receiver_flush_frame(video_receiver);
}
}
Expand Down

0 comments on commit ce0d570

Please sign in to comment.