Skip to content

Commit f985537

Browse files
committed
More cleanup
To be squashed.
1 parent 557ffb3 commit f985537

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

playercontroller.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,20 @@ void PlayerController::handleFileEnd()
6262
}
6363
}
6464

65-
void PlayerController::open(const QUrl &url)
65+
void PlayerController::open(const QUrl &file)
6666
{
6767
if (haveFile)
6868
{
69-
queuedFile = url;
69+
queuedFile = file;
7070
return stop();
7171
}
7272
p_tracks.clear();
7373

7474
// Here we need to scan siblings folder for possible external subtitles and audio
7575
//, then set it to sub-file-paths and audio-file-paths OPTIONs (not properties)
76-
if (url.isLocalFile())
76+
if (file.isLocalFile())
7777
{
78-
QDir mediaDir = QFileInfo(url.toLocalFile()).absoluteDir();
78+
QDir mediaDir = QFileInfo(file.toLocalFile()).absoluteDir();
7979

8080
if (p_extSubMaxDepth>=0 && p_extSubMode!="no")
8181
{
@@ -94,7 +94,7 @@ void PlayerController::open(const QUrl &url)
9494
}
9595
}
9696

97-
p->command(QStringList{"loadfile", url.toString()});
97+
p->command(QStringList{"loadfile", file.toString()});
9898
}
9999

100100
void PlayerController::stop()

playercontroller.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class PlayerController : public QObject
5858
void setExtSubOptions(QString mode, int depth) { p_extSubMode = mode; p_extSubMaxDepth = depth; }
5959
void setExtAudioOptions(QString mode, int depth) { p_extAudioMode = mode; p_extAudioMaxDepth = depth; }
6060

61-
void open(const QUrl &url);
61+
void open(const QUrl &file);
6262
void stop();
6363

6464
void togglePlayback();

singleinstance.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616
*/
1717
#include "singleinstance.h"
1818

19-
#include <QDataStream>
2019
#include <QDebug>
2120
#include <QIODevice>
2221
#include <QLocalSocket>
2322
#include <QLocalServer>
2423
#include <qflags.h>
2524

26-
#include "program_arg.h"
2725

2826
SingleInstance::SingleInstance(QString appName, QObject *parent)
2927
: p_appName(appName), QObject{parent}

0 commit comments

Comments
 (0)