File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff 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
100100void PlayerController::stop ()
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff line change 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
2826SingleInstance::SingleInstance (QString appName, QObject *parent)
2927 : p_appName(appName), QObject{parent}
You can’t perform that action at this time.
0 commit comments