diff options
author | Benjamin Otte <otte@gnome.org> | 2008-09-24 11:13:33 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2008-09-24 11:13:33 +0200 |
commit | e8f46635b702d449c27230c69f333b73a72f7b90 (patch) | |
tree | 33c4bd29dad617e7a0eef6fb4485cc65dbcae179 | |
parent | c37f02fc20a4ffc74eecfceeaff913a250933320 (diff) |
make sure to delete initial stream if it gets destroyed
extra paranoia about flashblock behavior
-rw-r--r-- | src/plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c index 48fd413..857d733 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -342,6 +342,8 @@ plugin_destroy_stream_cb (NPP instance, NPStream* stream, NPReason reason) swfmoz_loader_ensure_open (stream->pdata); swfdec_stream_close (stream->pdata); SWFMOZ_LOADER (stream->pdata)->stream = NULL; + if (SWFMOZ_PLAYER (instance->pdata)->initial == stream->pdata) + SWFMOZ_PLAYER (instance->pdata)->initial = NULL; g_object_unref (stream->pdata); return NPERR_NO_ERROR; } |