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
fd94f73f
Commit
fd94f73f
authored
Apr 05, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ogg: permit attachments
parent
d0043736
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
modules/demux/ogg.c
modules/demux/ogg.c
+16
-0
modules/demux/ogg.h
modules/demux/ogg.h
+4
-0
No files found.
modules/demux/ogg.c
View file @
fd94f73f
...
@@ -426,6 +426,22 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -426,6 +426,22 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_SET_TIME
:
case
DEMUX_SET_TIME
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
case
DEMUX_GET_ATTACHMENTS
:
{
input_attachment_t
***
ppp_attach
=
(
input_attachment_t
***
)
va_arg
(
args
,
input_attachment_t
***
);
int
*
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
if
(
p_sys
->
i_attachments
<=
0
)
return
VLC_EGENERIC
;
*
pi_int
=
p_sys
->
i_attachments
;
*
ppp_attach
=
xmalloc
(
sizeof
(
input_attachment_t
**
)
*
p_sys
->
i_attachments
);
for
(
int
i
=
0
;
i
<
p_sys
->
i_attachments
;
i
++
)
(
*
ppp_attach
)[
i
]
=
vlc_input_attachment_Duplicate
(
p_sys
->
attachments
[
i
]
);
return
VLC_SUCCESS
;
}
case
DEMUX_SET_POSITION
:
case
DEMUX_SET_POSITION
:
/* forbid seeking if we haven't initialized all logical bitstreams yet;
/* forbid seeking if we haven't initialized all logical bitstreams yet;
if we allowed, some headers would not get backed up and decoder init
if we allowed, some headers would not get backed up and decoder init
...
...
modules/demux/ogg.h
View file @
fd94f73f
...
@@ -131,4 +131,8 @@ struct demux_sys_t
...
@@ -131,4 +131,8 @@ struct demux_sys_t
/* */
/* */
vlc_meta_t
*
p_meta
;
vlc_meta_t
*
p_meta
;
/* */
int
i_attachments
;
input_attachment_t
**
attachments
;
};
};
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