Kaynağa Gözat

PlayerComponent: remove some unused code

Does nothing anymore.
Vincent Lang 8 yıl önce
ebeveyn
işleme
0930cb2fbc

+ 1 - 7
src/player/PlayerComponent.cpp

@@ -40,7 +40,7 @@ PlayerComponent::PlayerComponent(QObject* parent)
   m_windowVisible(false), m_videoPlaybackActive(false), m_inPlayback(false),
   m_bufferingPercentage(100), m_lastBufferingPercentage(-1),
   m_lastPositionUpdate(0.0), m_playbackAudioDelay(0),
-  m_playbackStartSent(false), m_window(nullptr), m_mediaFrameRate(0),
+  m_window(nullptr), m_mediaFrameRate(0),
   m_restoreDisplayTimer(this), m_reloadAudioTimer(this),
   m_streamSwitchImminent(false), m_doAc3Transcoding(false),
   m_videoRectangle(-1, -1, -1, -1)
@@ -420,7 +420,6 @@ void PlayerComponent::handleMpvEvent(mpv_event *event)
   {
     case MPV_EVENT_START_FILE:
     {
-      m_playbackStartSent = false;
       m_inPlayback = true;
       break;
     }
@@ -441,11 +440,6 @@ void PlayerComponent::handleMpvEvent(mpv_event *event)
       m_streamSwitchImminent = false;
       break;
     }
-    case MPV_EVENT_PLAYBACK_RESTART:
-    {
-      m_playbackStartSent = true;
-      break;
-    }
     case MPV_EVENT_PROPERTY_CHANGE:
     {
       mpv_event_property *prop = (mpv_event_property *)event->data;

+ 0 - 1
src/player/PlayerComponent.h

@@ -217,7 +217,6 @@ private:
   int m_lastBufferingPercentage;
   double m_lastPositionUpdate;
   qint64 m_playbackAudioDelay;
-  bool m_playbackStartSent;
   QQuickWindow* m_window;
   float m_mediaFrameRate;
   QTimer m_restoreDisplayTimer;