Skip to content

Commit 0f4b05c

Browse files
MinyazevRiakov
authored andcommitted
Fix the current solution to enable compatibility with the DirectShow plugin.
1 parent e5a3f38 commit 0f4b05c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gamepadForm.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ void GamepadForm::restartVideoStream()
176176
const auto &cPort = mSettings.value("cameraPort").toString();
177177
const auto status = player->mediaStatus();
178178
if (status == QMediaPlayer::NoMedia || status == QMediaPlayer::EndOfMedia || status == QMediaPlayer::InvalidMedia) {
179-
const QString url = "http://" + cIp + ":" + cPort + "/?action=stream&filename=noname.jpg";
179+
// "Initially, there was a &filename=noname.jpg parameter that interfered with the DirectShow backend?
180+
const QString url = "http://" + cIp + ":" + cPort + "/?action=stream";
180181
// QNetworkRequest nr = QNetworkRequest(url);
181182
// nr.setPriority(QNetworkRequest::LowPriority);
182183
// nr.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::AlwaysCache);

0 commit comments

Comments
 (0)