Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 453148 Details for
Bug 592276
media-plugins/mythplugins-0.27.5_p20150627-r4[cdio] misses headers due to non-standard include file location
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch fix
cdio_paranoia.patch (text/plain), 9.08 KB, created by
Stephen Kirkby
on 2016-11-12 18:57:28 UTC
(
hide
)
Description:
Proposed patch fix
Filename:
MIME Type:
Creator:
Stephen Kirkby
Created:
2016-11-12 18:57:28 UTC
Size:
9.08 KB
patch
obsolete
>diff -ruN mythtv-0.28/mythplugins/configure mythtv-0.28_new/mythplugins/configure >--- mythtv-0.28/mythplugins/configure 2016-04-11 20:30:28.000000000 +0100 >+++ mythtv-0.28_new/mythplugins/configure 2016-11-12 18:17:31.698777894 +0000 >@@ -682,7 +682,7 @@ > echo "MythMusic requires FLAC." > fi > >- if ! check_lib cdio/cdio.h cdio_open -lcdio || ! check_lib cdio/cdda.h cdio_cddap_open -lcdio_cdda || ! check_lib cdio/paranoia.h cdio_paranoia_init -lcdio_paranoia ; then >+ if ! check_lib cdio/cdio.h cdio_open -lcdio || (! check_lib cdio/cdda.h cdio_cddap_open -lcdio_cdda && ! check_lib cdio/paranoia/cdda.h cdio_cddap_open -lcdio_cdda) || (! check_lib cdio/paranoia.h cdio_paranoia_init -lcdio_paranoia && ! check_lib cdio/paranoia/paranoia.h cdio_paranoia_init -lcdio_paranoia) ; then > disable cdio > fi > >@@ -901,11 +901,16 @@ > fi > > if enabled cdio ; then >- echo "#define HAVE_CDIO 1" >> ./mythmusic/mythmusic/config.h >+ if check_lib cdio/cdda.h cdio_cddap_open -lcdio_cdda ; then >+ echo "#define HAVE_CDIO 1" >> ./mythmusic/mythmusic/config.h >+ else >+ echo "#define HAVE_CDIO_PARANOIA 1" >> ./mythmusic/mythmusic/config.h >+ fi > echo "CONFIG += cdio" >> ./mythmusic/mythmusic/config.pro > echo " libcdio support will be included in MythMusic" > else > echo "#undef HAVE_CDIO" >> ./mythmusic/mythmusic/config.h >+ echo "#undef HAVE_CDIO_PARANOIA" >> ./mythmusic/mythmusic/config.h > echo " libcdio support will not be included in MythMusic" > fi > >diff -ruN mythtv-0.28/mythplugins/mythmusic/mythmusic/cddecoder.cpp mythtv-0.28_new/mythplugins/mythmusic/mythmusic/cddecoder.cpp >--- mythtv-0.28/mythplugins/mythmusic/mythmusic/cddecoder.cpp 2016-04-11 20:30:28.000000000 +0100 >+++ mythtv-0.28_new/mythplugins/mythmusic/mythmusic/cddecoder.cpp 2016-11-12 17:14:36.559380936 +0000 >@@ -14,7 +14,11 @@ > #include <QString> > > // libcdio >-#include <cdio/cdda.h> >+#ifdef HAVE_CDIO >+# include <cdio/cdda.h> >+#else >+# include <cdio/paranoia/cdda.h> >+#endif > #include <cdio/logging.h> > > // MythTV >diff -ruN mythtv-0.28/mythplugins/mythmusic/mythmusic/cddecoder.h mythtv-0.28_new/mythplugins/mythmusic/mythmusic/cddecoder.h >--- mythtv-0.28/mythplugins/mythmusic/mythmusic/cddecoder.h 2016-04-11 20:30:28.000000000 +0100 >+++ mythtv-0.28_new/mythplugins/mythmusic/mythmusic/cddecoder.h 2016-11-12 18:24:28.905534483 +0000 >@@ -15,6 +15,11 @@ > # include <cdio/paranoia.h> > #endif > >+#ifdef HAVE_CDIO_PARANOIA >+# include <cdio/paranoia/cdda.h> >+# include <cdio/paranoia/paranoia.h> >+#endif >+ > class MusicMetadata; > > class CdDecoder : public Decoder >@@ -82,7 +87,7 @@ > int m_settracknum; > int m_tracknum; > >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > CdIo_t *m_cdio; > cdrom_drive_t *m_device; > cdrom_paranoia_t *m_paranoia; >diff -ruN mythtv-0.28/mythplugins/mythmusic/mythmusic/cdrip.cpp mythtv-0.28_new/mythplugins/mythmusic/mythmusic/cdrip.cpp >--- mythtv-0.28/mythplugins/mythmusic/mythmusic/cdrip.cpp 2016-04-11 20:30:28.000000000 +0100 >+++ mythtv-0.28_new/mythplugins/mythmusic/mythmusic/cdrip.cpp 2016-11-12 18:26:06.014807314 +0000 >@@ -12,6 +12,11 @@ > # include <cdio/paranoia.h> > #endif //def HAVE_CDIO > >+#ifdef HAVE_CDIO_PARANOIA >+# include <cdio/paranoia/cdda.h> >+# include <cdio/paranoia/paranoia.h> >+#endif //def HAVE_CDIO_PARANOIA >+ > // C++ includes > #include <iostream> > #include <memory> >@@ -52,9 +57,9 @@ > > // MythMusic includes > #include "cdrip.h" >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > #include "cddecoder.h" >-#endif // HAVE_CDIO >+#endif // HAVE_CDIO || HAVE_CDIO_PARANOIA > #include "encoder.h" > #include "vorbisencoder.h" > #include "lameencoder.h" >@@ -64,7 +69,7 @@ > #include "mythlogging.h" > #include "musicutils.h" > >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > // libparanoia compatibility > #ifndef cdrom_paranoia > #define cdrom_paranoia cdrom_paranoia_t >@@ -73,7 +78,7 @@ > #ifndef CD_FRAMESIZE_RAW > # define CD_FRAMESIZE_RAW CDIO_CD_FRAMESIZE_RAW > #endif // CD_FRAMESIZE_RAW >-#endif // HAVE_CDIO >+#endif // HAVE_CDIO || HAVE_CDIO_PARANOIA > > QEvent::Type RipStatusEvent::kTrackTextEvent = > (QEvent::Type) QEvent::registerEventType(); >@@ -132,7 +137,7 @@ > > static long int getSectorCount (QString &cddevice, int tracknum) > { >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > QByteArray devname = cddevice.toLatin1(); > cdrom_drive *device = cdda_identify(devname.constData(), 0, NULL); > >@@ -168,15 +173,15 @@ > cdda_close(device); > #else > (void)cddevice; (void)tracknum; >-#endif // HAVE_CDIO >+#endif // HAVE_CDIO || HAVE_CDIO_PARANOIA > return 0; > } > >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > static void paranoia_cb(long, paranoia_cb_mode_t) > { > } >-#endif // HAVE_CDIO >+#endif // HAVE_CDIO || HAVE_CDIO_PARANOIA > > CDRipperThread::CDRipperThread(RipStatus *parent, QString device, > QVector<RipTrack*> *tracks, int quality) : >@@ -413,7 +418,7 @@ > > int CDRipperThread::ripTrack(QString &cddevice, Encoder *encoder, int tracknum) > { >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > QByteArray devname = cddevice.toLatin1(); > cdrom_drive *device = cdda_identify(devname.constData(), 0, NULL); > >@@ -529,7 +534,7 @@ > #else > (void)cddevice; (void)encoder; (void)tracknum; > return 0; >-#endif // HAVE_CDIO >+#endif // HAVE_CDIO || HAVE_CDIO_PARANOIA > } > > /////////////////////////////////////////////////////////////////////////////// >@@ -873,13 +878,13 @@ > > void Ripper::scanCD(void) > { >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > { > LOG(VB_MEDIA, LOG_INFO, QString("Ripper::%1 CD='%2'"). > arg(__func__).arg(m_CDdevice)); > (void)cdio_close_tray(m_CDdevice.toLatin1().constData(), NULL); > } >-#endif // HAVE_CDIO >+#endif // HAVE_CDIO || HAVE_CDIO_PARANOIA > > if (m_decoder) > delete m_decoder; >@@ -1226,7 +1231,7 @@ > bool bEjectCD = gCoreContext->GetNumSetting("EjectCDAfterRipping",1); > if (bEjectCD) > { >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > LOG(VB_MEDIA, LOG_INFO, QString("Ripper::%1 '%2'"). > arg(__func__).arg(m_CDdevice)); > (void)cdio_eject_media_drive(m_CDdevice.toLatin1().constData()); >@@ -1242,7 +1247,7 @@ > mon->Unlock(pMedia); > } > } >-#endif // HAVE_CDIO >+#endif // HAVE_CDIO || HAVE_CDIO_PARANOIA > } > } > >diff -ruN mythtv-0.28/mythplugins/mythmusic/mythmusic/decoder.cpp mythtv-0.28_new/mythplugins/mythmusic/mythmusic/decoder.cpp >--- mythtv-0.28/mythplugins/mythmusic/mythmusic/decoder.cpp 2016-04-11 20:30:28.000000000 +0100 >+++ mythtv-0.28_new/mythplugins/mythmusic/mythmusic/decoder.cpp 2016-11-12 18:26:21.677528862 +0000 >@@ -71,7 +71,7 @@ > { > factories = new QList<DecoderFactory*>; > >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > Decoder::registerFactory(new CdDecoderFactory); > #endif > Decoder::registerFactory(new avfDecoderFactory); >diff -ruN mythtv-0.28/mythplugins/mythmusic/mythmusic/main.cpp mythtv-0.28_new/mythplugins/mythmusic/mythmusic/main.cpp >--- mythtv-0.28/mythplugins/mythmusic/mythmusic/main.cpp 2016-04-11 20:30:28.000000000 +0100 >+++ mythtv-0.28_new/mythplugins/mythmusic/mythmusic/main.cpp 2016-11-12 18:23:29.880584947 +0000 >@@ -47,11 +47,11 @@ > #include "importmusic.h" > #include "metaio.h" > >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > #include "cdrip.h" > #endif > >-#if defined HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > /** > * \brief Work out the best CD drive to use at this time > */ >@@ -197,7 +197,7 @@ > > static void startRipper(void) > { >-#if defined HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > if (!checkStorageGroup()) > return; > >@@ -418,7 +418,7 @@ > { > gMusicData->loadMusic(); > >-#if defined HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); > > Ripper *rip = new Ripper(mainStack, chooseCD()); >@@ -638,7 +638,7 @@ > } > } > >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > static void handleCDMedia(MythMediaDevice *cd) > { > >diff -ruN mythtv-0.28/mythplugins/mythmusic/mythmusic/musicplayer.cpp mythtv-0.28_new/mythplugins/mythmusic/mythmusic/musicplayer.cpp >--- mythtv-0.28/mythplugins/mythmusic/mythmusic/musicplayer.cpp 2016-04-11 20:30:28.000000000 +0100 >+++ mythtv-0.28_new/mythplugins/mythmusic/mythmusic/musicplayer.cpp 2016-11-12 18:26:35.085290527 +0000 >@@ -24,7 +24,7 @@ > #include "decoder.h" > #include "decoderhandler.h" > #include "metaio.h" >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > #include "cddecoder.h" > #endif > #include "constants.h" >@@ -1548,7 +1548,7 @@ > LOG(VB_PLAYBACK, LOG_INFO, QString ("decoder handler is ready, decoding %1") > .arg(getDecoder()->getURL())); > >-#ifdef HAVE_CDIO >+#if defined HAVE_CDIO || defined HAVE_CDIO_PARANOIA > CdDecoder *cddecoder = dynamic_cast<CdDecoder*>(getDecoder()); > if (cddecoder) > cddecoder->setDevice(gCDdevice);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 592276
: 453148