Skip to content

Commit

Permalink
stream_out: transcode: use designated initializer
Browse files Browse the repository at this point in the history
Using designated initializer allows to split implementation of optional
callbacks from their addition to the struct.
  • Loading branch information
alexandre-janniaux authored and fkuehne committed Jan 13, 2023
1 parent 9f76d48 commit b0fda60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/stream_out/transcode/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static vlc_decoder_device *video_get_encoder_device( encoder_t *enc )
}

static const struct encoder_owner_callbacks encoder_video_transcode_cbs = {
{ video_get_encoder_device, }
.video.get_device = video_get_encoder_device
};

static vlc_decoder_device * video_get_decoder_device( decoder_t *p_dec )
Expand Down

0 comments on commit b0fda60

Please sign in to comment.