[vlmc-devel] commit: Media: Solving a signal type problem. (Hugo Beauzee-Luyssen )
git at videolan.org
git at videolan.org
Sat Mar 20 16:29:36 CET 2010
vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Sat Mar 20 12:39:19 2010 +0100| [e01d72d900b89d14ef1569d35032d4df7030d82a] | committer: Hugo Beauzee-Luyssen
Media: Solving a signal type problem.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=e01d72d900b89d14ef1569d35032d4df7030d82a
---
src/Gui/media/GuiMedia.cpp | 3 ++-
src/Gui/media/GuiMedia.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/Gui/media/GuiMedia.cpp b/src/Gui/media/GuiMedia.cpp
index 91cd9fa..b8c6409 100644
--- a/src/Gui/media/GuiMedia.cpp
+++ b/src/Gui/media/GuiMedia.cpp
@@ -21,6 +21,7 @@
*****************************************************************************/
#include "GuiMedia.h"
+#include "Media.h"
QPixmap* GUIMedia::defaultSnapshot = NULL;
@@ -56,5 +57,5 @@ GUIMedia::snapshot() const
void
GUIMedia::emitSnapshotComputed()
{
- emit snapshotComputed( this );
+ emit snapshotComputed( qobject_cast<const Media*>( this ) );
}
diff --git a/src/Gui/media/GuiMedia.h b/src/Gui/media/GuiMedia.h
index a7fb685..5764329 100644
--- a/src/Gui/media/GuiMedia.h
+++ b/src/Gui/media/GuiMedia.h
@@ -27,6 +27,7 @@
#include <QPixmap>
class QPixmap;
+class Media;
class GUIMedia : public QObject
{
@@ -47,7 +48,7 @@ protected:
signals:
- void snapshotComputed( const GUIMedia* );
+ void snapshotComputed( const Media* );
};
#endif // GUIMEDIA_H
More information about the Vlmc-devel
mailing list