Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b062d2a6
Commit
b062d2a6
authored
Dec 04, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved OPENING_S/BUFFERING_S status change.
parent
f593c8f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
src/input/input.c
src/input/input.c
+11
-6
No files found.
src/input/input.c
View file @
b062d2a6
...
...
@@ -1176,6 +1176,10 @@ static int Init( input_thread_t * p_input )
var_Create
(
p_input
,
"bit-rate"
,
VLC_VAR_INTEGER
);
var_Create
(
p_input
,
"sample-rate"
,
VLC_VAR_INTEGER
);
/* */
input_ChangeState
(
p_input
,
OPENING_S
);
/* */
if
(
InputSourceInit
(
p_input
,
&
p_input
->
p
->
input
,
p_input
->
p
->
p_item
->
psz_uri
,
NULL
)
)
{
...
...
@@ -2390,6 +2394,10 @@ static int InputSourceInit( input_thread_t *p_input,
{
int64_t
i_pts_delay
;
/* */
if
(
b_master
)
input_ChangeState
(
p_input
,
BUFFERING_S
);
/* Get infos from access_demux */
demux_Control
(
in
->
p_demux
,
DEMUX_GET_PTS_DELAY
,
&
i_pts_delay
);
...
...
@@ -2437,9 +2445,6 @@ static int InputSourceInit( input_thread_t *p_input,
{
int64_t
i_pts_delay
;
if
(
b_master
)
input_ChangeState
(
p_input
,
OPENING_S
);
/* Now try a real access */
in
->
p_access
=
access_New
(
p_input
,
psz_access
,
psz_demux
,
psz_path
);
...
...
@@ -2518,9 +2523,6 @@ static int InputSourceInit( input_thread_t *p_input,
var_Set
(
p_input
,
"can-seek"
,
val
);
}
if
(
b_master
)
input_ChangeState
(
p_input
,
BUFFERING_S
);
/* Autodetect extra files if none specified */
char
*
psz_input_list
=
var_CreateGetNonEmptyString
(
p_input
,
"input-list"
);
if
(
!
psz_input_list
)
...
...
@@ -2532,6 +2534,9 @@ static int InputSourceInit( input_thread_t *p_input,
}
/* Create the stream_t */
if
(
b_master
)
input_ChangeState
(
p_input
,
BUFFERING_S
);
in
->
p_stream
=
stream_AccessNew
(
in
->
p_access
,
p_input
->
b_preparsing
);
/* Restor old value */
...
...
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