summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2008-04-22 22:58:56 +0200
committerBenjamin Otte <otte@gnome.org>2008-04-22 22:58:56 +0200
commitae9b908f493499e6fa9f41dc45fdc506997013cf (patch)
tree0a53b3350c4042ad540ff0366210052b06cbf83f /src
parentbd92be696f65499a8cf54c318ada4c765bfda7d0 (diff)
use the right check for determining if a player was already initialized
Diffstat (limited to 'src')
-rw-r--r--src/swfmoz_player.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/swfmoz_player.c b/src/swfmoz_player.c
index 3124076..80c5d06 100644
--- a/src/swfmoz_player.c
+++ b/src/swfmoz_player.c
@@ -651,11 +651,10 @@ swfmoz_player_render (SwfmozPlayer *player, GdkRegion *region)
rect.y - player->target_rect.y, rect.width, rect.height);
/* paint optional pause sign */
if (!swfdec_gtk_player_get_playing (SWFDEC_GTK_PLAYER (player)) &&
- player->initial != NULL) {
+ swfdec_player_get_url (SWFDEC_PLAYER (player)) != NULL) {
int w = player->target_rect.width;
int h = player->target_rect.height;
int len = MIN (w, h) * 4 / 5;
- g_print ("PAINTING PAUSE\n");
cairo_rectangle (cr, 0, 0, w, h);
cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 0.4);
cairo_fill (cr);