Skip to content

Commit

Permalink
win d3d: Force decoder reset
Browse files Browse the repository at this point in the history
This extends 54939b1 to the windows d3d video driver.
  • Loading branch information
linuxdude42 committed Nov 24, 2023
1 parent c185673 commit a6daf81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions mythtv/libs/libmythtv/videoout_d3d.cpp
Expand Up @@ -109,7 +109,8 @@ bool VideoOutputD3D::InputChanged(const QSize &video_dim_buf,
float video_aspect,
MythCodecID av_codec_id,
bool &aspect_only,
int [[maybe_unused]] reference_frames)
int [[maybe_unused]] reference_frames,
bool force_change)
{
QMutexLocker locker(&m_lock);

Expand All @@ -127,7 +128,7 @@ bool VideoOutputD3D::InputChanged(const QSize &video_dim_buf,
bool res_changed = video_dim_disp != cursize;
bool asp_changed = video_aspect != m_window.GetVideoAspect();

if (!res_changed && !cid_changed)
if (!res_changed && !cid_changed && !force_change)
{
if (asp_changed)
{
Expand Down
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/videoout_d3d.h
Expand Up @@ -32,7 +32,8 @@ class VideoOutputD3D : public MythVideoOutput
float video_aspect,
MythCodecID av_codec_id,
bool &aspect_only,
int reference_frames) override; // VideoOutput
int reference_frames,
bool force_change) override; // VideoOutput
void UpdatePauseFrame(std::chrono::milliseconds &disp_timecode, FrameScanType Scan = kScan_Progressive) override; // VideoOutput
void EmbedInWidget(const QRect &rect) override; // VideoOutput
void StopEmbedding(void) override; // VideoOutput
Expand Down

0 comments on commit a6daf81

Please sign in to comment.