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
f88ab15d
Commit
f88ab15d
authored
Nov 09, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_filter: smooth: get rid of es->index->es
parent
e1bedc11
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
39 deletions
+0
-39
modules/stream_filter/smooth/downloader.c
modules/stream_filter/smooth/downloader.c
+0
-7
modules/stream_filter/smooth/smooth.h
modules/stream_filter/smooth/smooth.h
+0
-2
modules/stream_filter/smooth/utils.c
modules/stream_filter/smooth/utils.c
+0
-30
No files found.
modules/stream_filter/smooth/downloader.c
View file @
f88ab15d
...
...
@@ -482,13 +482,6 @@ static int Download( stream_t *s, sms_stream_t *sms )
assert
(
sms
->
p_nextdownload
->
data
==
NULL
);
assert
(
sms
->
current_qlvl
);
int
index
=
es_cat_to_index
(
sms
->
type
);
if
(
unlikely
(
index
==
-
1
)
)
{
msg_Err
(
s
,
"invalid stream type"
);
return
VLC_EGENERIC
;
}
chunk_t
*
chunk
=
sms
->
p_nextdownload
;
if
(
!
chunk
)
{
...
...
modules/stream_filter/smooth/smooth.h
View file @
f88ab15d
...
...
@@ -188,7 +188,5 @@ void sms_Free( sms_stream_t *);
uint8_t
*
decode_string_hex_to_binary
(
const
char
*
);
sms_stream_t
*
sms_get_stream_by_cat
(
stream_sys_t
*
,
int
);
bool
no_more_chunks
(
stream_sys_t
*
);
int
index_to_es_cat
(
int
);
int
es_cat_to_index
(
int
);
void
resetChunksState
(
stream_sys_t
*
);
#endif
modules/stream_filter/smooth/utils.c
View file @
f88ab15d
...
...
@@ -200,36 +200,6 @@ sms_stream_t * sms_get_stream_by_cat( stream_sys_t *p_sys, int i_cat )
return
NULL
;
}
int
es_cat_to_index
(
int
i_cat
)
{
switch
(
i_cat
)
{
case
VIDEO_ES
:
return
0
;
case
AUDIO_ES
:
return
1
;
case
SPU_ES
:
return
2
;
default:
return
-
1
;
}
}
int
index_to_es_cat
(
int
index
)
{
switch
(
index
)
{
case
0
:
return
VIDEO_ES
;
case
1
:
return
AUDIO_ES
;
case
2
:
return
SPU_ES
;
default:
return
-
1
;
}
}
bool
no_more_chunks
(
stream_sys_t
*
p_sys
)
{
FOREACH_ARRAY
(
sms_stream_t
*
sms
,
p_sys
->
sms_selected
);
...
...
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