Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c6e4db8d
Commit
c6e4db8d
authored
Jan 16, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/control/media.c
src/control/media.c
+5
-0
No files found.
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 )
...
@@ -592,6 +592,11 @@ libvlc_media_get_duration( libvlc_media_t * p_md, libvlc_exception_t *p_e )
return
-
1
;
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
;
return
input_item_GetDuration
(
p_md
->
p_input_item
)
/
1000
;
}
}
...
...
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