[vlc-commits] Use int32 for title event

Jean-Baptiste Kempf git at videolan.org
Tue Dec 30 12:27:16 CET 2014


npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec 30 12:26:55 2014 +0100| [7a1aa17195f3a631d2a57f71526305615171bb54] | committer: Jean-Baptiste Kempf

Use int32 for title event

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

 npapi/events.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/npapi/events.cpp b/npapi/events.cpp
index 8ce22dc..35b5071 100644
--- a/npapi/events.cpp
+++ b/npapi/events.cpp
@@ -79,7 +79,7 @@ static void handle_changed_event(const libvlc_event_t* event, void *param)
             BOOLEAN_TO_NPVARIANT(event->u.media_player_pausable_changed.new_pausable, npparam[0]);
             break;
         case libvlc_MediaPlayerTitleChanged:
-            DOUBLE_TO_NPVARIANT(event->u.media_player_title_changed.new_title, npparam[0]);
+            INT32_TO_NPVARIANT(event->u.media_player_title_changed.new_title, npparam[0]);
             break;
         case libvlc_MediaPlayerLengthChanged:
             DOUBLE_TO_NPVARIANT(event->u.media_player_length_changed.new_length, npparam[0]);



More information about the vlc-commits mailing list