Mercurial > hg > easaier-soundaccess
diff data/fileio/VideoFileReader.cpp @ 145:e63e8272dcb0
the video size is updated automatically
author | benoitrigolleau |
---|---|
date | Tue, 13 Nov 2007 17:23:53 +0000 |
parents | 3b2b790e47e5 |
children | c946c19e6329 |
line wrap: on
line diff
--- a/data/fileio/VideoFileReader.cpp Tue Nov 13 11:09:57 2007 +0000 +++ b/data/fileio/VideoFileReader.cpp Tue Nov 13 17:23:53 2007 +0000 @@ -192,6 +192,11 @@ // we get the size from our active video stream, if no active video stream // exists, width and height are set to default values (320x240) SDL_ffmpegGetVideoSize(file, &w, &h); + + MainWindow * MWins=MainWindow::instance(); + MWins->setSDLInitSize(w,h); + + SDL_Init(SDL_INIT_VIDEO); Videow=w; Videoh=h;