trying to fix seg fault

This commit is contained in:
Chris Cochrun 2022-03-17 09:27:25 -05:00
parent 5a1fa3fc75
commit 24106c2c3c
5 changed files with 90 additions and 15 deletions

View file

@ -1,6 +1,7 @@
#include "mpvobject.h"
// std
#include <mpv/render.h>
#include <qdir.h>
#include <qvariant.h>
#include <stdexcept>
@ -271,7 +272,7 @@ void MpvObject::command(const QVariant& params)
void MpvObject::commandAsync(const QVariant& params)
{
qDebug() << params;
// qDebug() << params;
mpv::qt::command_async(mpv, params);
}
@ -505,6 +506,12 @@ void MpvObject::stop()
command(QVariantList() << "stop");
}
void MpvObject::quit()
{
command(QVariantList() << "quit");
qDebug() << "We quit mpv";
}
void MpvObject::stepBackward()
{
command(QVariantList() << "frame-back-step");