trying to fix seg fault
This commit is contained in:
parent
5a1fa3fc75
commit
24106c2c3c
5 changed files with 90 additions and 15 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue