[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog gui/Player.cpp
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog gui/Player.cpp |
Date: |
Mon, 14 May 2007 16:56:11 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/05/14 16:56:11
Modified files:
. : ChangeLog
gui : Player.cpp
Log message:
* gui/Player.cpp (run): exit with a failure if input movie has
collapsed dimensions (malformed SWF most likely).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3201&r2=1.3202
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Player.cpp?cvsroot=gnash&r1=1.49&r2=1.50
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3201
retrieving revision 1.3202
diff -u -b -r1.3201 -r1.3202
--- ChangeLog 14 May 2007 16:24:43 -0000 1.3201
+++ ChangeLog 14 May 2007 16:56:10 -0000 1.3202
@@ -1,5 +1,7 @@
2007-05-14 Sandro Santilli <address@hidden>
+ * gui/Player.cpp (run): exit with a failure if input movie has
+ collapsed dimensions (malformed SWF most likely).
* server/asobj/xml.{cpp,h}: change extractNode interface to return a
bool, so it can implement a custom ignoreWhite thing (the libxml2
XML_PARSE_NOBLANKS seems to be not working. Add getXMLOptions()
Index: gui/Player.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/Player.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- gui/Player.cpp 14 May 2007 09:44:21 -0000 1.49
+++ gui/Player.cpp 14 May 2007 16:56:10 -0000 1.50
@@ -306,6 +306,11 @@
height = int(movie_height * scale);
}
+ if ( ! width || ! height )
+ {
+ log_error(_("Input movie has collapsed dimensions %d/%d. Giving up."),
width, height);
+ return EXIT_FAILURE;
+ }
// Now that we know about movie size, create gui window.
_gui->createWindow(infile, width, height);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog gui/Player.cpp,
Sandro Santilli <=