-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 更新了`action.yml`文件,将Qt版本从`6.7.2`更改为`6.8.0`。 - 简化了条件判断,使用`runner.os == 'OS'`代替`startsWith(runner.os, 'OS')`。 - 添加了`dependabot.yml`文件,配置了GitHub Dependabot以自动更新GitHub Actions。 - 更新了`qmake.yml`工作流,将Windows版本从`windows-2019`更改为`windows-latest`。 - 更新了`qt.cmake`文件,更改了Qt路径以匹配新的Qt版本。 - 重构了`playlistmodel.cpp`和`playlistmodel.h`,简化了代码并移除了不必要的连接。 - 删除了Vulkan着色器文件`video_vulkan.frag`和`video_vulkan.vert`。 - 更新了`3rdparty.pri`文件,更改了第三方库的名称。 - 更新了`averror.cpp`文件,使用了`av_make_error_string`函数来获取错误信息。 - 更新了`vcpkg.json`文件,更改了内置基线的提交哈希。
- Loading branch information
Showing
23 changed files
with
300 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ jobs: | |
matrix: | ||
os: | ||
- windows-latest | ||
- windows-2019 | ||
- macos-latest | ||
- ubuntu-latest | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
if(CMAKE_HOST_WIN32) | ||
list(APPEND CMAKE_PREFIX_PATH "C:\\Qt\\6.7.2\\msvc2019_64") | ||
list(APPEND CMAKE_PREFIX_PATH "C:\\Qt\\6.8.0\\msvc2022_64") | ||
elseif(CMAKE_HOST_APPLE) | ||
|
||
elseif(CMAKE_HOST_LINUX) | ||
list(APPEND CMAKE_PREFIX_PATH "/opt/Qt/6.7.2/gcc_64") | ||
list(APPEND CMAKE_PREFIX_PATH "/opt/Qt/6.8.0/gcc_64") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Copyright (C) 2016 The Qt Company Ltd. | ||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause | ||
|
||
#include "qmediaplaylist_p.h" | ||
|
||
QT_BEGIN_NAMESPACE | ||
|
||
QMediaPlaylistPrivate::QMediaPlaylistPrivate() : error(QMediaPlaylist::NoError) { } | ||
|
||
QMediaPlaylistPrivate::~QMediaPlaylistPrivate() | ||
{ | ||
delete parser; | ||
} | ||
|
||
void QMediaPlaylistPrivate::loadFailed(QMediaPlaylist::Error error, const QString &errorString) | ||
{ | ||
this->error = error; | ||
this->errorString = errorString; | ||
|
||
emit q_ptr->loadFailed(); | ||
} | ||
|
||
void QMediaPlaylistPrivate::loadFinished() | ||
{ | ||
q_ptr->addMedia(parser->playlist); | ||
|
||
emit q_ptr->loaded(); | ||
} | ||
|
||
bool QMediaPlaylistPrivate::checkFormat(const char *format) const | ||
{ | ||
QLatin1String f(format); | ||
QPlaylistFileParser::FileType type = | ||
format ? QPlaylistFileParser::UNKNOWN : QPlaylistFileParser::M3U8; | ||
if (format) { | ||
if (f == QLatin1String("m3u") || f == QLatin1String("text/uri-list") | ||
|| f == QLatin1String("audio/x-mpegurl") || f == QLatin1String("audio/mpegurl")) | ||
type = QPlaylistFileParser::M3U; | ||
else if (f == QLatin1String("m3u8") || f == QLatin1String("application/x-mpegURL") | ||
|| f == QLatin1String("application/vnd.apple.mpegurl")) | ||
type = QPlaylistFileParser::M3U8; | ||
} | ||
|
||
if (type == QPlaylistFileParser::UNKNOWN || type == QPlaylistFileParser::PLS) { | ||
error = QMediaPlaylist::FormatNotSupportedError; | ||
errorString = QMediaPlaylist::tr("This file format is not supported."); | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
void QMediaPlaylistPrivate::ensureParser() | ||
{ | ||
if (parser) | ||
return; | ||
|
||
parser = new QPlaylistFileParser(q_ptr); | ||
QObject::connect(parser, &QPlaylistFileParser::finished, q_ptr, [this]() { loadFinished(); }); | ||
QObject::connect(parser, &QPlaylistFileParser::error, q_ptr, | ||
[this](QMediaPlaylist::Error err, const QString &errorMsg) { | ||
loadFailed(err, errorMsg); | ||
}); | ||
} | ||
|
||
QT_END_NAMESPACE |
Oops, something went wrong.