diff options
Diffstat (limited to 'office/texstudio/phonon-fix.patch')
-rw-r--r-- | office/texstudio/phonon-fix.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/office/texstudio/phonon-fix.patch b/office/texstudio/phonon-fix.patch new file mode 100644 index 0000000000..867759f34e --- /dev/null +++ b/office/texstudio/phonon-fix.patch @@ -0,0 +1,31 @@ +--- a/pdfviewer/PDFDocument.cpp ++++ b/pdfviewer/PDFDocument.cpp +@@ -360,7 +360,7 @@ + } + + #ifdef PHONON +-PDFMovie::PDFMovie(PDFWidget *parent, Poppler::MovieAnnotation *annot, int page): VideoPlayer(parent), page(page) ++PDFMovie::PDFMovie(PDFWidget *parent, QSharedPointer<Poppler::MovieAnnotation> annot, int page): VideoPlayer(parent), page(page) + { + REQUIRE(parent && annot && parent->getPDFDocument()); + REQUIRE(annot->subType() == Poppler::Annotation::AMovie); +@@ -862,7 +862,7 @@ + case Poppler::Annotation::AMovie: { + #ifdef PHONON + if (movie) delete movie; +- movie = new PDFMovie(this, dynamic_cast<Poppler::MovieAnnotation *>(annotation), page); ++ movie = new PDFMovie(this, qSharedPointerDynamicCast<Poppler::MovieAnnotation>(annotation), page); + movie->place(); + movie->show(); + movie->play(); +--- a/pdfviewer/PDFDocument.h ++++ b/pdfviewer/PDFDocument.h +@@ -104,7 +104,7 @@ + { + Q_OBJECT + public: +- PDFMovie(PDFWidget *parent, Poppler::MovieAnnotation *annot, int page); ++ PDFMovie(PDFWidget *parent, QSharedPointer<Poppler::MovieAnnotation> annot, int page); + void place(); + protected: + void contextMenuEvent(QContextMenuEvent *); |