Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
4a12b025
Commit
4a12b025
authored
Jul 27, 2014
by
Paulo Vitor Magacho da Silva
Committed by
Jean-Baptiste Kempf
Jul 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed new time from int to long.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
336f061c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vlc-android/jni/libvlcjni.c
vlc-android/jni/libvlcjni.c
+2
-1
No files found.
vlc-android/jni/libvlcjni.c
View file @
4a12b025
...
...
@@ -139,6 +139,7 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data)
jobject
bundle
=
(
*
env
)
->
NewObject
(
env
,
clsBundle
,
clsCtor
);
jmethodID
putInt
=
(
*
env
)
->
GetMethodID
(
env
,
clsBundle
,
"putInt"
,
"(Ljava/lang/String;I)V"
);
jmethodID
putLong
=
(
*
env
)
->
GetMethodID
(
env
,
clsBundle
,
"putLong"
,
"(Ljava/lang/String;J)V"
);
jmethodID
putFloat
=
(
*
env
)
->
GetMethodID
(
env
,
clsBundle
,
"putFloat"
,
"(Ljava/lang/String;F)V"
);
jmethodID
putString
=
(
*
env
)
->
GetMethodID
(
env
,
clsBundle
,
"putString"
,
"(Ljava/lang/String;Ljava/lang/String;)V"
);
...
...
@@ -148,7 +149,7 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data)
(
*
env
)
->
DeleteLocalRef
(
env
,
sData
);
}
else
if
(
ev
->
type
==
libvlc_MediaPlayerTimeChanged
)
{
jstring
sData
=
(
*
env
)
->
NewStringUTF
(
env
,
"data"
);
(
*
env
)
->
CallVoidMethod
(
env
,
bundle
,
put
Int
,
sData
,
(
int
)
ev
->
u
.
media_player_time_changed
.
new_time
);
(
*
env
)
->
CallVoidMethod
(
env
,
bundle
,
put
Long
,
sData
,
ev
->
u
.
media_player_time_changed
.
new_time
);
(
*
env
)
->
DeleteLocalRef
(
env
,
sData
);
}
else
if
(
ev
->
type
==
libvlc_MediaPlayerVout
)
{
/* For determining the vout/ES track change */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment