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
26a1e9d2
Commit
26a1e9d2
authored
Nov 02, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved input_EsOutIsBuffering to es_out_Control.
parent
719d408b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
src/input/es_out.c
src/input/es_out.c
+5
-4
src/input/es_out.h
src/input/es_out.h
+13
-2
src/input/input.c
src/input/input.c
+1
-3
No files found.
src/input/es_out.c
View file @
26a1e9d2
...
@@ -495,10 +495,6 @@ bool input_EsOutDecodersIsEmpty( es_out_t *out )
...
@@ -495,10 +495,6 @@ bool input_EsOutDecodersIsEmpty( es_out_t *out )
return
true
;
return
true
;
}
}
bool
input_EsOutIsBuffering
(
es_out_t
*
out
)
{
return
out
->
p_sys
->
b_buffering
;
}
void
input_EsOutFrameNext
(
es_out_t
*
out
)
void
input_EsOutFrameNext
(
es_out_t
*
out
)
{
{
es_out_sys_t
*
p_sys
=
out
->
p_sys
;
es_out_sys_t
*
p_sys
=
out
->
p_sys
;
...
@@ -2309,6 +2305,11 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
...
@@ -2309,6 +2305,11 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
return
es_out_Control
(
out
,
i_new_query
,
p_es
);
return
es_out_Control
(
out
,
i_new_query
,
p_es
);
}
}
case
ES_OUT_GET_BUFFERING
:
pb
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
*
pb
=
p_sys
->
b_buffering
;
return
VLC_SUCCESS
;
default:
default:
msg_Err
(
p_sys
->
p_input
,
"unknown query in es_out_Control"
);
msg_Err
(
p_sys
->
p_input
,
"unknown query in es_out_Control"
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
src/input/es_out.h
View file @
26a1e9d2
...
@@ -34,12 +34,15 @@
...
@@ -34,12 +34,15 @@
enum
es_out_query_private_e
enum
es_out_query_private_e
{
{
/* Get date to wait before demuxing more data */
/* Get date to wait before demuxing more data */
ES_OUT_GET_WAKE_UP
=
ES_OUT_PRIVATE_START
,
/* arg1=mtime_t* res=cannot fail */
ES_OUT_GET_WAKE_UP
=
ES_OUT_PRIVATE_START
,
/* arg1=mtime_t* res=cannot fail */
/* Wrapper for some ES command to work with id */
/* Wrapper for some ES command to work with id */
ES_OUT_SET_ES_BY_ID
,
ES_OUT_SET_ES_BY_ID
,
ES_OUT_RESTART_ES_BY_ID
,
ES_OUT_RESTART_ES_BY_ID
,
ES_OUT_SET_ES_DEFAULT_BY_ID
,
ES_OUT_SET_ES_DEFAULT_BY_ID
,
/* Get buffering state */
ES_OUT_GET_BUFFERING
,
/* arg1=bool* res=cannot fail */
};
};
static
inline
mtime_t
es_out_GetWakeup
(
es_out_t
*
p_out
)
static
inline
mtime_t
es_out_GetWakeup
(
es_out_t
*
p_out
)
...
@@ -50,6 +53,15 @@ static inline mtime_t es_out_GetWakeup( es_out_t *p_out )
...
@@ -50,6 +53,15 @@ static inline mtime_t es_out_GetWakeup( es_out_t *p_out )
assert
(
!
i_ret
);
assert
(
!
i_ret
);
return
i_wu
;
return
i_wu
;
}
}
static
inline
bool
es_out_GetBuffering
(
es_out_t
*
p_out
)
{
bool
b
;
int
i_ret
=
es_out_Control
(
p_out
,
ES_OUT_GET_BUFFERING
,
&
b
);
assert
(
!
i_ret
);
return
b
;
}
es_out_t
*
input_EsOutNew
(
input_thread_t
*
,
int
i_rate
);
es_out_t
*
input_EsOutNew
(
input_thread_t
*
,
int
i_rate
);
...
@@ -59,7 +71,6 @@ void input_EsOutChangeRate( es_out_t *, int );
...
@@ -59,7 +71,6 @@ void input_EsOutChangeRate( es_out_t *, int );
void
input_EsOutChangePause
(
es_out_t
*
,
bool
b_paused
,
mtime_t
i_date
);
void
input_EsOutChangePause
(
es_out_t
*
,
bool
b_paused
,
mtime_t
i_date
);
void
input_EsOutChangePosition
(
es_out_t
*
);
void
input_EsOutChangePosition
(
es_out_t
*
);
bool
input_EsOutDecodersIsEmpty
(
es_out_t
*
);
bool
input_EsOutDecodersIsEmpty
(
es_out_t
*
);
bool
input_EsOutIsBuffering
(
es_out_t
*
);
void
input_EsOutFrameNext
(
es_out_t
*
);
void
input_EsOutFrameNext
(
es_out_t
*
);
void
input_EsOutLock
(
es_out_t
*
);
void
input_EsOutLock
(
es_out_t
*
);
...
...
src/input/input.c
View file @
26a1e9d2
...
@@ -745,10 +745,8 @@ static void MainLoop( input_thread_t *p_input )
...
@@ -745,10 +745,8 @@ static void MainLoop( input_thread_t *p_input )
/* FIXME if p_input->i_state == PAUSE_S the access/access_demux
/* FIXME if p_input->i_state == PAUSE_S the access/access_demux
* is paused -> this may cause problem with some of them
* is paused -> this may cause problem with some of them
* The same problem can be seen when seeking while paused */
* The same problem can be seen when seeking while paused */
input_EsOutLock
(
p_input
->
p
->
p_es_out
);
b_paused
=
p_input
->
i_state
==
PAUSE_S
&&
b_paused
=
p_input
->
i_state
==
PAUSE_S
&&
!
input_EsOutIsBuffering
(
p_input
->
p
->
p_es_out
);
!
es_out_GetBuffering
(
p_input
->
p
->
p_es_out
);
input_EsOutUnlock
(
p_input
->
p
->
p_es_out
);
if
(
!
b_paused
)
if
(
!
b_paused
)
{
{
...
...
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