remove unused code

This commit is contained in:
Martin Rotter 2023-12-22 08:53:33 +01:00
parent 0edb3ca104
commit db3c18ce8f
1 changed files with 2 additions and 6 deletions

View File

@ -472,13 +472,9 @@ bool LibMpvBackend::eventFilter(QObject* watched, QEvent* event) {
}
void LibMpvBackend::playUrl(const QUrl& url) {
char* str;
mpv_get_property(m_mpvHandle, "ytdl_path", MPV_FORMAT_STRING, &str);
m_url = url;
if (m_mpvHandle != nullptr) {
m_url = url;
auto eb = url.toString().toLocal8Bit();
const char* css = eb.data();
const char* args[] = {"loadfile", css, nullptr};