[vlc-commits] npapi: Added handling of parent window changing.
Sergey Radionov
git at videolan.org
Wed Dec 21 12:54:13 CET 2011
npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Tue Dec 13 09:55:51 2011 +0700| [b5f942c671454a2d388b149d98c8aed3617ee769] | committer: Jean-Baptiste Kempf
npapi: Added handling of parent window changing.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=b5f942c671454a2d388b149d98c8aed3617ee769
---
npapi/vlcshell.cpp | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/npapi/vlcshell.cpp b/npapi/vlcshell.cpp
index 921be37..109f121 100644
--- a/npapi/vlcshell.cpp
+++ b/npapi/vlcshell.cpp
@@ -353,10 +353,11 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
/* resize / move notification */
p_plugin->resize_windows();
} else {
- /* we've already been created, but
- * our xembed socket has just changed. */
- /* FIXME */
- fprintf(stderr, "WARNING: plugin already created, but socket changed.\n");
+ //plugin parent window was changed, notify plugin about it
+ p_plugin->destroy_windows();
+ p_plugin->setWindow(*window);
+ p_plugin->create_windows();
+ p_plugin->resize_windows();
}
}
} else {
More information about the vlc-commits
mailing list