Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
c6e4db8d
Commit
c6e4db8d
authored
Jan 16, 2010
by
Pierre
Browse files
libvlc: Make sure calling get_duration() triggers preparsing and returns -1 if duration is unknown.
parent
4ea2ec4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/control/media.c
View file @
c6e4db8d
...
...
@@ -592,6 +592,11 @@ libvlc_media_get_duration( libvlc_media_t * p_md, libvlc_exception_t *p_e )
return
-
1
;
}
preparse_if_needed
(
p_md
);
if
(
!
input_item_IsPreparsed
(
p_md
->
p_input_item
))
return
-
1
;
return
input_item_GetDuration
(
p_md
->
p_input_item
)
/
1000
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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