multimedia/dvbcut: fix build on 14-CURRENT
Use unique_ptr instead of auto_ptr which has been removed from C++17.
This commit is contained in:
parent
03ac832807
commit
f58dcd87ec
3 changed files with 5 additions and 46 deletions
|
@ -1,7 +1,7 @@
|
|||
PORTNAME= dvbcut
|
||||
PORTVERSION= 0.7.4
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= multimedia
|
||||
|
||||
MAINTAINER= se@FreeBSD.org
|
||||
|
@ -26,6 +26,7 @@ USE_GL= gl
|
|||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= bernhardu
|
||||
GH_PROJECT= dvbcut-deb
|
||||
GH_TAGNAME= d7c8fad
|
||||
|
||||
CXXFLAGS+= -I${LOCALBASE}/include \
|
||||
-I${LOCALBASE}/include/libavcodec \
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1656366943
|
||||
SHA256 (bernhardu-dvbcut-deb-v0.7.4_GH0.tar.gz) = e1009e264079c0fdd3b423a84c31aafd0c3069cd137edbd6e2b16e884550f66e
|
||||
SIZE (bernhardu-dvbcut-deb-v0.7.4_GH0.tar.gz) = 194965
|
||||
TIMESTAMP = 1676714313
|
||||
SHA256 (bernhardu-dvbcut-deb-v0.7.4-d7c8fad_GH0.tar.gz) = 5c5c17ab235dd1568c7e1ab1e43e6c1d9f94db5dbfb0beeaf609ec81d92cd1e4
|
||||
SIZE (bernhardu-dvbcut-deb-v0.7.4-d7c8fad_GH0.tar.gz) = 198570
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
--- src/dvbcut.cpp.orig 2016-11-18 13:31:01 UTC
|
||||
+++ src/dvbcut.cpp
|
||||
@@ -580,7 +580,7 @@ void dvbcut::fileExport()
|
||||
}
|
||||
}
|
||||
|
||||
- std::unique_ptr<exportdialog> expd(new exportdialog(QString::fromStdString(expfilen),this));
|
||||
+ std::auto_ptr<exportdialog> expd(new exportdialog(QString::fromStdString(expfilen),this));
|
||||
expd->ui->muxercombo->addItem(tr("MPEG program stream/DVD (DVBCUT multiplexer)"));
|
||||
expd->ui->muxercombo->addItem(tr("MPEG program stream (DVBCUT multiplexer)"));
|
||||
expd->ui->muxercombo->addItem(tr("MPEG program stream/DVD (libavformat)"));
|
||||
@@ -725,7 +725,7 @@ void dvbcut::fileExport()
|
||||
|
||||
// lavfmuxer mux(fmt,*mpg,outfilename);
|
||||
|
||||
- std::unique_ptr<muxer> mux;
|
||||
+ std::auto_ptr<muxer> mux;
|
||||
uint32_t audiostreammask(0);
|
||||
|
||||
for(int a=0;a<mpg->getaudiostreams();++a)
|
||||
@@ -737,17 +737,17 @@ void dvbcut::fileExport()
|
||||
|
||||
switch(expfmt) {
|
||||
case 1:
|
||||
- mux = std::unique_ptr<muxer>(new mpegmuxer(audiostreammask,*mpg,out_file.c_str(),false,0));
|
||||
+ mux = std::auto_ptr<muxer>(new mpegmuxer(audiostreammask,*mpg,out_file.c_str(),false,0));
|
||||
break;
|
||||
case 2:
|
||||
- mux = std::unique_ptr<muxer>(new lavfmuxer("dvd",audiostreammask,*mpg,out_file.c_str()));
|
||||
+ mux = std::auto_ptr<muxer>(new lavfmuxer("dvd",audiostreammask,*mpg,out_file.c_str()));
|
||||
break;
|
||||
case 3:
|
||||
- mux = std::unique_ptr<muxer>(new lavfmuxer("mpegts",audiostreammask,*mpg,out_file.c_str()));
|
||||
+ mux = std::auto_ptr<muxer>(new lavfmuxer("mpegts",audiostreammask,*mpg,out_file.c_str()));
|
||||
break;
|
||||
case 0:
|
||||
default:
|
||||
- mux = std::unique_ptr<muxer>(new mpegmuxer(audiostreammask,*mpg,out_file.c_str()));
|
||||
+ mux = std::auto_ptr<muxer>(new mpegmuxer(audiostreammask,*mpg,out_file.c_str()));
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in a new issue