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
5b880a59
Commit
5b880a59
authored
Sep 04, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- input: added intermediate state info opening & buffering
parent
0a9262fd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
9 deletions
+31
-9
modules/control/http/http.c
modules/control/http/http.c
+8
-0
modules/gui/beos/MediaControlView.cpp
modules/gui/beos/MediaControlView.cpp
+2
-0
modules/gui/ncurses.c
modules/gui/ncurses.c
+8
-0
src/input/input.c
src/input/input.c
+6
-9
src/input/input_internal.h
src/input/input_internal.h
+7
-0
No files found.
modules/control/http/http.c
View file @
5b880a59
...
...
@@ -522,6 +522,14 @@ static void ParseExecute( httpd_file_sys_t *p_args, char *p_buffer,
{
sprintf
(
state
,
"playing"
);
}
else
if
(
val
.
i_int
==
OPENING_S
)
{
sprintf
(
state
,
"opening/connecting"
);
}
else
if
(
val
.
i_int
==
BUFFERING_S
)
{
sprintf
(
state
,
"buffering"
);
}
else
if
(
val
.
i_int
==
PAUSE_S
)
{
sprintf
(
state
,
"paused"
);
...
...
modules/gui/beos/MediaControlView.cpp
View file @
5b880a59
...
...
@@ -313,6 +313,8 @@ MediaControlView::SetStatus(int status, int rate)
switch
(
status
)
{
case
PLAYING_S
:
case
OPENNING_S
:
case
BUFFERING_S
:
fPlayPause
->
SetPlaying
();
break
;
case
PAUSE_S
:
...
...
modules/gui/ncurses.c
View file @
5b880a59
...
...
@@ -1213,6 +1213,14 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
{
mvnprintw
(
y
++
,
0
,
COLS
,
" State : Playing"
);
}
else
if
(
val
.
i_int
==
OPENNING_S
)
{
mvnprintw
(
y
++
,
0
,
COLS
,
" State : Openning/Connecting"
);
}
else
if
(
val
.
i_int
==
BUFFERING_S
)
{
mvnprintw
(
y
++
,
0
,
COLS
,
" State : Buffering"
);
}
else
if
(
val
.
i_int
==
PAUSE_S
)
{
mvnprintw
(
y
++
,
0
,
COLS
,
" State : Paused"
);
...
...
src/input/input.c
View file @
5b880a59
...
...
@@ -1048,10 +1048,7 @@ static int Init( input_thread_t * p_input, vlc_bool_t b_quick )
}
/* initialization is complete */
p_input
->
i_state
=
PLAYING_S
;
val
.
i_int
=
PLAYING_S
;
var_Change
(
p_input
,
"state"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
input_ChangeState
(
p_input
,
PLAYING_S
);
return
VLC_SUCCESS
;
...
...
@@ -1091,16 +1088,12 @@ static void Error( input_thread_t *p_input )
*****************************************************************************/
static
void
End
(
input_thread_t
*
p_input
)
{
vlc_value_t
val
;
int
i
;
msg_Dbg
(
p_input
,
"closing input"
);
/* We are at the end */
p_input
->
i_state
=
END_S
;
val
.
i_int
=
END_S
;
var_Change
(
p_input
,
"state"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
input_ChangeState
(
p_input
,
END_S
);
/* Clean control variables */
input_ControlVarClean
(
p_input
);
...
...
@@ -1983,6 +1976,8 @@ static int InputSourceInit( input_thread_t *p_input,
{
int64_t
i_pts_delay
;
input_ChangeState
(
p_input
,
OPENING_S
);
/* Now try a real access */
in
->
p_access
=
access2_New
(
p_input
,
psz_access
,
psz_demux
,
psz_path
,
b_quick
);
...
...
@@ -2079,6 +2074,8 @@ static int InputSourceInit( input_thread_t *p_input,
var_Set
(
p_input
,
"seekable"
,
val
);
}
input_ChangeState
(
p_input
,
BUFFERING_S
);
/* Create the stream_t */
in
->
p_stream
=
stream_AccessNew
(
in
->
p_access
,
b_quick
);
if
(
in
->
p_stream
==
NULL
)
...
...
src/input/input_internal.h
View file @
5b880a59
...
...
@@ -156,4 +156,11 @@ int subtitles_Filter( const char *);
void
MRLSplit
(
vlc_object_t
*
,
char
*
,
char
**
,
char
**
,
char
**
);
static
inline
void
input_ChangeState
(
input_thread_t
*
p_input
,
int
state
)
{
vlc_value_t
val
;
val
.
i_int
=
state
;
var_Change
(
p_input
,
"state"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
}
#endif
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