Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexarian committed Aug 30, 2023
1 parent 29ae611 commit 7db4415
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions common/xrdp_client_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,11 @@ enum xrdp_encoder_flags
CONTAINS_DUAL_FRAME_AVC444 = 1 << 1,
CONTAINS_SINGLE_FRAME_AVC444_YUV420 = 1 << 2,
CONTAINS_SINGLE_FRAME_AVC444_CHROMA420 = 1 << 3,
CONTAINS_KEY_FRAME = 1 << 4
CONTAINS_KEY_FRAME = 1 << 4,
KEY_FRAME_REQUESTED = 1 << 5
};

/* yyyymmdd of last incompatible change to xrdp_client_info */
#define CLIENT_INFO_CURRENT_VERSION 20230520
#define CLIENT_INFO_CURRENT_VERSION 20230830

#endif
12 changes: 9 additions & 3 deletions xrdp/xrdp_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,8 @@ build_rfx_avc420_metablock(struct stream *s, short *rrects, int rcount,
return comp_bytes_pre;
}

/*****************************************************************************/
/* called from encoder thread */
static int
process_enc_h264(struct xrdp_encoder *self, XRDP_ENC_DATA *enc)
build_enc_h264(struct xrdp_encoder *self, XRDP_ENC_DATA *enc)
{
int index;
int x;
Expand Down Expand Up @@ -845,6 +843,14 @@ process_enc_h264(struct xrdp_encoder *self, XRDP_ENC_DATA *enc)
return 0;
}

/*****************************************************************************/
/* called from encoder thread */
static int
process_enc_h264(struct xrdp_encoder *self, XRDP_ENC_DATA *enc)
{
return build_enc_h264(self, enc);
}

#else

/*****************************************************************************/
Expand Down

0 comments on commit 7db4415

Please sign in to comment.