fix: Remove more mplayer references.

Signed-off-by: 's avatarLuis Felipe Dominguez Vega <ldominguezvega@gmail.com>
parent 90b55552
...@@ -60,7 +60,7 @@ InteractiveCuttingDialog::~InteractiveCuttingDialog() ...@@ -60,7 +60,7 @@ InteractiveCuttingDialog::~InteractiveCuttingDialog()
bool InteractiveCuttingDialog::available() bool InteractiveCuttingDialog::available()
{ {
return ExePath::checkProgramAvailability("mplayer"); return true;
} }
bool InteractiveCuttingDialog::fromBegin() const bool InteractiveCuttingDialog::fromBegin() const
...@@ -105,13 +105,8 @@ void InteractiveCuttingDialog::setEndTime(int sec) ...@@ -105,13 +105,8 @@ void InteractiveCuttingDialog::setEndTime(int sec)
int InteractiveCuttingDialog::exec(const QString &filename) int InteractiveCuttingDialog::exec(const QString &filename)
{ {
if (available()) { player->load(filename, m_rangeEdit->beginTime(), m_rangeEdit->endTime());
player->load(filename, m_rangeEdit->beginTime(), m_rangeEdit->endTime()); return exec();
return exec();
} else {
QMessageBox::critical(this, windowTitle(), tr("%1 not found").arg("mplayer"));
return QDialog::Rejected;
}
} }
int InteractiveCuttingDialog::exec(const QString &filename, TimeRangeEdit *range) int InteractiveCuttingDialog::exec(const QString &filename, TimeRangeEdit *range)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment