[vlmc-devel] Media: Fix snapshot resolution

Hugo Beauzée-Luyssen git at videolan.org
Mon Feb 24 14:46:42 CET 2014


vlmc | branch: ibackend | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 24 14:35:01 2014 +0200| [8133062a376fffb89d225ae79c71d60c22c7225e] | committer: Hugo Beauzée-Luyssen

Media: Fix snapshot resolution

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=8133062a376fffb89d225ae79c71d60c22c7225e
---

 src/Media/Media.cpp |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/Media/Media.cpp b/src/Media/Media.cpp
index 1246bd7..391a300 100644
--- a/src/Media/Media.cpp
+++ b/src/Media/Media.cpp
@@ -186,8 +186,7 @@ Media::onMetaDataComputed()
     if ( m_source->hasVideo() && m_source->snapshot() != NULL )
     {
         Q_ASSERT( m_snapshotImage == NULL );
-        m_snapshotImage = new QImage( m_source->snapshot(), m_source->width(),
-                                      m_source->height(), QImage::Format_RGB32 );
+        m_snapshotImage = new QImage( m_source->snapshot(), 320, 180, QImage::Format_RGB32 );
         emit snapshotAvailable();
     }
 }



More information about the Vlmc-devel mailing list