Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9cd3560b
Commit
9cd3560b
authored
Jul 03, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audiotrack: always try to fetch AudioTimestamp clazz
parent
e54be6c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/audio_output/audiotrack.c
modules/audio_output/audiotrack.c
+2
-2
No files found.
modules/audio_output/audiotrack.c
View file @
9cd3560b
...
@@ -268,10 +268,8 @@ InitJNIFields( audio_output_t *p_aout, JNIEnv* env )
...
@@ -268,10 +268,8 @@ InitJNIFields( audio_output_t *p_aout, JNIEnv* env )
}
else
}
else
GET_ID
(
GetMethodID
,
AudioTrack
.
write
,
"write"
,
"([BII)I"
,
true
);
GET_ID
(
GetMethodID
,
AudioTrack
.
write
,
"write"
,
"([BII)I"
,
true
);
#ifdef AUDIOTRACK_HW_LATENCY
GET_ID
(
GetMethodID
,
AudioTrack
.
getTimestamp
,
GET_ID
(
GetMethodID
,
AudioTrack
.
getTimestamp
,
"getTimestamp"
,
"(Landroid/media/AudioTimestamp;)Z"
,
false
);
"getTimestamp"
,
"(Landroid/media/AudioTimestamp;)Z"
,
false
);
#endif
GET_ID
(
GetMethodID
,
AudioTrack
.
getPlaybackHeadPosition
,
GET_ID
(
GetMethodID
,
AudioTrack
.
getPlaybackHeadPosition
,
"getPlaybackHeadPosition"
,
"()I"
,
true
);
"getPlaybackHeadPosition"
,
"()I"
,
true
);
...
@@ -984,6 +982,7 @@ Start( audio_output_t *p_aout, audio_sample_format_t *restrict p_fmt )
...
@@ -984,6 +982,7 @@ Start( audio_output_t *p_aout, audio_sample_format_t *restrict p_fmt )
}
}
p_sys
->
i_max_audiotrack_samples
=
BYTES_TO_FRAMES
(
i_audiotrack_size
);
p_sys
->
i_max_audiotrack_samples
=
BYTES_TO_FRAMES
(
i_audiotrack_size
);
#ifdef AUDIOTRACK_HW_LATENCY
if
(
jfields
.
AudioTimestamp
.
clazz
)
if
(
jfields
.
AudioTimestamp
.
clazz
)
{
{
/* create AudioTimestamp object */
/* create AudioTimestamp object */
...
@@ -1000,6 +999,7 @@ Start( audio_output_t *p_aout, audio_sample_format_t *restrict p_fmt )
...
@@ -1000,6 +999,7 @@ Start( audio_output_t *p_aout, audio_sample_format_t *restrict p_fmt )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
}
}
#endif
if
(
p_sys
->
fmt
.
i_format
==
VLC_CODEC_FL32
)
if
(
p_sys
->
fmt
.
i_format
==
VLC_CODEC_FL32
)
{
{
...
...
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