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
5a419c91
Commit
5a419c91
authored
Oct 08, 2007
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let the input handle meta data and attachments for ogg files.
parent
30dcf59a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
52 deletions
+4
-52
modules/demux/ogg.c
modules/demux/ogg.c
+4
-52
No files found.
modules/demux/ogg.c
View file @
5a419c91
...
@@ -104,13 +104,6 @@ struct demux_sys_t
...
@@ -104,13 +104,6 @@ struct demux_sys_t
/* bitrate */
/* bitrate */
int
i_bitrate
;
int
i_bitrate
;
/* meta data */
vlc_meta_t
*
meta
;
/* attachments */
int
i_attachments
;
input_attachment_t
**
attachments
;
};
};
/* OggDS headers for the new header format (used in ogm files) */
/* OggDS headers for the new header format (used in ogm files) */
...
@@ -210,23 +203,6 @@ static int Open( vlc_object_t * p_this )
...
@@ -210,23 +203,6 @@ static int Open( vlc_object_t * p_this )
/* Begnning of stream, tell the demux to look for elementary streams. */
/* Begnning of stream, tell the demux to look for elementary streams. */
p_sys
->
i_eos
=
0
;
p_sys
->
i_eos
=
0
;
if
(
!
var_CreateGetBool
(
p_demux
,
"meta-preparsed"
)
)
{
p_demux
->
p_private
=
malloc
(
sizeof
(
demux_meta_t
)
);
if
(
!
p_demux
->
p_private
)
return
VLC_ENOMEM
;
module_t
*
p_meta
=
module_Need
(
p_demux
,
"meta reader"
,
NULL
,
0
);
if
(
p_meta
)
{
module_Unneed
(
p_demux
,
p_meta
);
demux_meta_t
*
p_demux_meta
=
(
demux_meta_t
*
)
p_demux
->
p_private
;
p_sys
->
meta
=
p_demux_meta
->
p_meta
;
p_sys
->
i_attachments
=
p_demux_meta
->
i_attachments
;
p_sys
->
attachments
=
p_demux_meta
->
attachments
;
}
free
(
p_demux
->
p_private
);
}
/* Initialize the Ogg physical bitstream parser */
/* Initialize the Ogg physical bitstream parser */
ogg_sync_init
(
&
p_sys
->
oy
);
ogg_sync_init
(
&
p_sys
->
oy
);
...
@@ -246,14 +222,6 @@ static void Close( vlc_object_t *p_this )
...
@@ -246,14 +222,6 @@ static void Close( vlc_object_t *p_this )
Ogg_EndOfStream
(
p_demux
);
Ogg_EndOfStream
(
p_demux
);
var_Destroy
(
p_demux
,
"meta-preparsed"
);
if
(
p_sys
->
meta
)
vlc_meta_Delete
(
p_sys
->
meta
);
int
i
;
for
(
i
=
0
;
i
<
p_sys
->
i_attachments
;
i
++
)
free
(
p_sys
->
attachments
[
i
]
);
TAB_CLEAN
(
p_sys
->
i_attachments
,
p_sys
->
attachments
);
free
(
p_sys
);
free
(
p_sys
);
}
}
...
@@ -398,16 +366,14 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -398,16 +366,14 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
int64_t
*
pi64
;
int64_t
*
pi64
;
vlc_bool_t
*
pb_bool
;
int
i
;
int
i
;
input_attachment_t
***
ppp_attach
;
int
*
pi_int
;
vlc_meta_t
*
p_meta
;
switch
(
i_query
)
switch
(
i_query
)
{
{
case
DEMUX_
GET
_META
:
case
DEMUX_
HAS_UNSUPPORTED
_META
:
p
_meta
=
(
vlc_meta_t
*
)
va_arg
(
args
,
vlc_meta
_t
*
);
p
b_bool
=
(
vlc_bool_t
*
)
va_arg
(
args
,
vlc_bool
_t
*
);
vlc_meta_Merge
(
p_meta
,
p_sys
->
meta
)
;
*
pb_bool
=
VLC_TRUE
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
case
DEMUX_GET_TIME
:
case
DEMUX_GET_TIME
:
...
@@ -431,20 +397,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -431,20 +397,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
}
ogg_sync_reset
(
&
p_sys
->
oy
);
ogg_sync_reset
(
&
p_sys
->
oy
);
case
DEMUX_GET_ATTACHMENTS
:
ppp_attach
=
(
input_attachment_t
***
)
va_arg
(
args
,
input_attachment_t
***
);
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
if
(
p_sys
->
i_attachments
<=
0
)
return
VLC_EGENERIC
;
*
pi_int
=
p_sys
->
i_attachments
;
*
ppp_attach
=
malloc
(
sizeof
(
input_attachment_t
**
)
*
p_sys
->
i_attachments
);
for
(
i
=
0
;
i
<
p_sys
->
i_attachments
;
i
++
)
(
*
ppp_attach
)[
i
]
=
vlc_input_attachment_Duplicate
(
p_sys
->
attachments
[
i
]
);
return
VLC_SUCCESS
;
default:
default:
return
demux2_vaControlHelper
(
p_demux
->
s
,
0
,
-
1
,
p_sys
->
i_bitrate
,
return
demux2_vaControlHelper
(
p_demux
->
s
,
0
,
-
1
,
p_sys
->
i_bitrate
,
1
,
i_query
,
args
);
1
,
i_query
,
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