Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
63515e2f
Commit
63515e2f
authored
Jan 16, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: added STREAM_GET_MTU and stream_MTU.
parent
c87130e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
include/ninput.h
include/ninput.h
+9
-2
src/input/stream.c
src/input/stream.c
+6
-1
No files found.
include/ninput.h
View file @
63515e2f
...
...
@@ -2,7 +2,7 @@
* ninput.h
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: ninput.h,v 1.2
3 2004/01/07 15:31:31
fenrir Exp $
* $Id: ninput.h,v 1.2
4 2004/01/16 11:12:16
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -117,6 +117,8 @@ enum stream_query_e
STREAM_GET_POSITION
,
/**< arg1= int64_t * res=cannot fail*/
STREAM_GET_SIZE
,
/**< arg1= int64_t * res=cannot fail (0 if no sense)*/
STREAM_GET_MTU
,
/**< arg1= int * res=cannot fail (0 if no sense)*/
};
/* Stream */
...
...
@@ -145,12 +147,17 @@ static int64_t inline stream_Size( stream_t *s )
return
i_pos
;
}
static
int
inline
stream_MTU
(
stream_t
*
s
)
{
int
i_mtu
;
return
stream_Control
(
s
,
STREAM_GET_POSITION
,
&
i_mtu
);
}
static
int
inline
stream_Seek
(
stream_t
*
s
,
int64_t
i_pos
)
{
return
stream_Control
(
s
,
STREAM_SET_POSITION
,
i_pos
);
}
/**
* @}
*/
...
...
src/input/stream.c
View file @
63515e2f
...
...
@@ -2,7 +2,7 @@
* stream.c
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* $Id: stream.c,v 1.1
0 2004/01/06 21:42:43 sigmunau
Exp $
* $Id: stream.c,v 1.1
1 2004/01/16 11:12:16 fenrir
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -78,6 +78,7 @@ int stream_vaControl( stream_t *s, int i_query, va_list args )
{
vlc_bool_t
*
p_b
;
int64_t
*
p_i64
,
i64
;
int
*
p_int
;
switch
(
i_query
)
{
...
...
@@ -172,7 +173,11 @@ int stream_vaControl( stream_t *s, int i_query, va_list args )
}
}
}
return
VLC_SUCCESS
;
case
STREAM_GET_MTU
:
p_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
p_int
=
s
->
p_input
->
i_mtu
;
return
VLC_SUCCESS
;
default:
...
...
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