Skip to content

Commit

Permalink
MythVideoOutput: Remove MythVideoOutput::GetMHEG
Browse files Browse the repository at this point in the history
- and use GetDisplayVideoRect where it is used
  • Loading branch information
mark-kendall committed Sep 2, 2020
1 parent 402e447 commit 3b2ff17
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/captions/subtitlescreen.cpp
Expand Up @@ -2474,7 +2474,7 @@ void SubtitleScreen::InitialiseAssTrack(int tracknum)
if (!header.isNull())
ass_process_codec_private(m_assTrack, header.data(), header.size());

m_safeArea = m_player->GetVideoOutput()->GetMHEGBounds();
m_safeArea = m_player->GetVideoOutput()->GetDisplayVideoRect();
ResizeAssRenderer();
}

Expand Down Expand Up @@ -2509,7 +2509,7 @@ void SubtitleScreen::RenderAssTrack(uint64_t timecode)
return;

QRect oldscreen = m_safeArea;
m_safeArea = vo->GetMHEGBounds();
m_safeArea = vo->GetDisplayVideoRect();
if (oldscreen != m_safeArea)
ResizeAssRenderer();

Expand Down
5 changes: 0 additions & 5 deletions mythtv/libs/libmythtv/mythvideoout.cpp
Expand Up @@ -482,11 +482,6 @@ QRect MythVideoOutput::GetTotalOSDBounds() const
return GetDisplayVisibleRect();
}

QRect MythVideoOutput::GetMHEGBounds()
{
return GetDisplayVideoRect();
}

PictureAttributeSupported MythVideoOutput::GetSupportedPictureAttributes()
{
return m_videoColourSpace.SupportedAttributes();
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/mythvideoout.h
Expand Up @@ -69,7 +69,6 @@ class MythVideoOutput : public MythVideoBounds
virtual void GetOSDBounds(QRect& Total, QRect& Visible,
float& VisibleAspect, float& FontScaling,
float ThemeAspect) const;
QRect GetMHEGBounds();
PictureAttributeSupported GetSupportedPictureAttributes();
int ChangePictureAttribute(PictureAttribute AttributeType, bool Direction);
virtual int SetPictureAttribute(PictureAttribute Attribute, int NewValue);
Expand Down

0 comments on commit 3b2ff17

Please sign in to comment.