瀏覽代碼

PlayerComponent: avoid deprecated forms of commands

Since a while ago, "foo-bar" is preferred over "foo_bar".
Vincent Lang 9 年之前
父節點
當前提交
37eb9346b2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/player/PlayerComponent.cpp

+ 2 - 2
src/player/PlayerComponent.cpp

@@ -584,7 +584,7 @@ void PlayerComponent::setSubtitleStream(const QString &subtitleStream)
   }
   else
   {
-    QStringList args = (QStringList() << "sub_add" << subtitleStream << "cached");
+    QStringList args = (QStringList() << "sub-add" << subtitleStream << "cached");
     mpv::qt::command_variant(m_mpv, args);
   }
 }
@@ -621,7 +621,7 @@ void PlayerComponent::setSubtitleDelay(qint64 milliseconds)
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 void PlayerComponent::onReloadAudio()
 {
-  mpv::qt::command_variant(m_mpv, QStringList() << "ao_reload");
+  mpv::qt::command_variant(m_mpv, QStringList() << "ao-reload");
 }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////