win-dshow: Fix rotation not working in all cases

master
jp9000 2020-03-07 06:48:07 -08:00
parent c8bafff16a
commit 40817331d3
1 changed files with 5 additions and 5 deletions

View File

@ -522,6 +522,11 @@ void DShowInput::OnVideoData(const VideoConfig &config, unsigned char *data,
size_t size, long long startTime,
long long endTime, long rotation)
{
if (rotation != lastRotation) {
lastRotation = rotation;
obs_source_set_async_rotation(source, rotation);
}
if (videoConfig.format == VideoFormat::H264) {
OnEncodedVideoData(AV_CODEC_ID_H264, data, size, startTime);
return;
@ -592,11 +597,6 @@ void DShowInput::OnVideoData(const VideoConfig &config, unsigned char *data,
return;
}
if (rotation != lastRotation) {
lastRotation = rotation;
obs_source_set_async_rotation(source, rotation);
}
obs_source_output_video2(source, &frame);
UNUSED_PARAMETER(endTime); /* it's the enndd tiimmes! */