[Swfdec] src/swfmoz_player.c

Benjamin Otte company at kemper.freedesktop.org
Wed Nov 14 12:12:30 PST 2007


 src/swfmoz_player.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 21b574ff96601897f59511902c4dc1e86b6febe8
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Nov 14 21:12:06 2007 +0100

    target may be NULL

diff --git a/src/swfmoz_player.c b/src/swfmoz_player.c
index ec4fd20..e6832e8 100644
--- a/src/swfmoz_player.c
+++ b/src/swfmoz_player.c
@@ -481,7 +481,7 @@ swfmoz_player_set_target (SwfmozPlayer *player, GdkWindow *target,
     int x, int y, int width, int height)
 {
   g_return_if_fail (SWFMOZ_IS_PLAYER (player));
-  g_return_if_fail (GDK_IS_WINDOW (target));
+  g_return_if_fail (target == NULL || GDK_IS_WINDOW (target));
 
   if (player->target) {
     g_object_unref (player->target);


More information about the Swfdec mailing list