[vlc-commits] Events: simplifcation

Jean-Baptiste Kempf git at videolan.org
Wed Apr 23 19:28:54 CEST 2014


npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr 23 19:21:40 2014 +0200| [c09dc8d0915ab89826f995fb3bf8d7c0eb42c4ad] | committer: Jean-Baptiste Kempf

Events: simplifcation

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=c09dc8d0915ab89826f995fb3bf8d7c0eb42c4ad
---

 npapi/events.cpp |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/npapi/events.cpp b/npapi/events.cpp
index 1bd5f44..d0e4574 100644
--- a/npapi/events.cpp
+++ b/npapi/events.cpp
@@ -131,14 +131,14 @@ void EventObj::deliver(NPP browser)
 
     for( ev_l::iterator iter = _elist.begin(); iter != _elist.end(); ++iter )
     {
+        NPVariant *params = iter->params();
+        uint32_t   count  = iter->count();
+
         for( lr_l::iterator j = _llist.begin(); j != _llist.end(); ++j )
         {
             if( j->event_type() == iter->event_type() )
             {
                 NPVariant result;
-                NPVariant *params = iter->params();
-                uint32_t   count  = iter->count();
-
                 NPObject *listener = j->listener();
                 assert( listener );
 



More information about the vlc-commits mailing list