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
84d07db2
Commit
84d07db2
authored
Jul 28, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: add STREAM_GET_PRIVATE_BLOCK for block-based buffering
parent
561195e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
include/vlc_stream.h
include/vlc_stream.h
+1
-0
src/input/stream.c
src/input/stream.c
+15
-0
No files found.
include/vlc_stream.h
View file @
84d07db2
...
@@ -106,6 +106,7 @@ enum stream_query_e
...
@@ -106,6 +106,7 @@ enum stream_query_e
STREAM_SET_PRIVATE_ID_STATE
=
0x1000
,
/* arg1= int i_private_data, bool b_selected res=can fail */
STREAM_SET_PRIVATE_ID_STATE
=
0x1000
,
/* arg1= int i_private_data, bool b_selected res=can fail */
STREAM_SET_PRIVATE_ID_CA
,
/* arg1= int i_program_number, uint16_t i_vpid, uint16_t i_apid1, uint16_t i_apid2, uint16_t i_apid3, uint8_t i_length, uint8_t *p_data */
STREAM_SET_PRIVATE_ID_CA
,
/* arg1= int i_program_number, uint16_t i_vpid, uint16_t i_apid1, uint16_t i_apid2, uint16_t i_apid3, uint8_t i_length, uint8_t *p_data */
STREAM_GET_PRIVATE_ID_STATE
,
/* arg1=int i_private_data arg2=bool * res=can fail */
STREAM_GET_PRIVATE_ID_STATE
,
/* arg1=int i_private_data arg2=bool * res=can fail */
STREAM_GET_PRIVATE_BLOCK
,
/**< arg1= block_t **b, arg2=bool *eof */
};
};
VLC_API
ssize_t
stream_Read
(
stream_t
*
,
void
*
,
size_t
);
VLC_API
ssize_t
stream_Read
(
stream_t
*
,
void
*
,
size_t
);
...
...
src/input/stream.c
View file @
84d07db2
...
@@ -498,6 +498,21 @@ int stream_vaControl(stream_t *s, int cmd, va_list args)
...
@@ -498,6 +498,21 @@ int stream_vaControl(stream_t *s, int cmd, va_list args)
}
}
return
ret
;
return
ret
;
}
}
case
STREAM_GET_PRIVATE_BLOCK
:
{
block_t
**
b
=
va_arg
(
args
,
block_t
**
);
bool
*
eof
=
va_arg
(
args
,
bool
*
);
if
(
priv
->
peek
!=
NULL
)
{
*
b
=
priv
->
peek
;
priv
->
peek
=
NULL
;
*
eof
=
false
;
return
VLC_SUCCESS
;
}
return
stream_ControlInternal
(
s
,
STREAM_GET_PRIVATE_BLOCK
,
b
,
eof
);
}
}
}
return
s
->
pf_control
(
s
,
cmd
,
args
);
return
s
->
pf_control
(
s
,
cmd
,
args
);
}
}
...
...
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