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
8115853d
Commit
8115853d
authored
May 20, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: check if stream can seek before setting is_stream to avformat
based on feedback from fenrir, looks nicer too.
parent
b90fde4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+9
-3
No files found.
modules/demux/avformat/demux.c
View file @
8115853d
...
...
@@ -116,6 +116,7 @@ int OpenDemux( vlc_object_t *p_this )
AVInputFormat
*
fmt
;
unsigned
int
i
;
int64_t
i_start_time
=
-
1
;
bool
b_can_seek
;
/* Init Probe data */
pd
.
filename
=
p_demux
->
psz_path
;
...
...
@@ -199,12 +200,17 @@ int OpenDemux( vlc_object_t *p_this )
p_sys
->
url
.
prot
->
next
=
0
;
init_put_byte
(
&
p_sys
->
io
,
p_sys
->
io_buffer
,
p_sys
->
io_buffer_size
,
0
,
&
p_sys
->
url
,
IORead
,
NULL
,
IOSeek
);
/* Tell avformat that input is stream, so it doesn't get stuck
stream_Control
(
p_demux
->
s
,
STREAM_CAN_SEEK
,
&
b_can_seek
);
if
(
!
b_can_seek
)
{
/* Tell avformat that input is stream, so it doesn't get stuck
when trying av_find_stream_info() trying to seek all the wrong places
init_put_byte defaults io.is_streamed=0, so thats why we set them after it
*/
p_sys
->
url
.
is_streamed
=
1
;
p_sys
->
io
.
is_streamed
=
1
;
p_sys
->
url
.
is_streamed
=
1
;
p_sys
->
io
.
is_streamed
=
1
;
}
/* Open it */
...
...
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