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
be5afcff
Commit
be5afcff
authored
Jan 07, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* demux2: allow to force demuxer.
* nsv: fixed bad init.
parent
863f246a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
modules/demux/demux2.c
modules/demux/demux2.c
+25
-2
modules/demux/nsv.c
modules/demux/nsv.c
+2
-2
No files found.
modules/demux/demux2.c
View file @
be5afcff
...
...
@@ -2,7 +2,7 @@
* demux2 adaptation layer.
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: demux2.c,v 1.
2 2004/01/04 15:32:13
fenrir Exp $
* $Id: demux2.c,v 1.
3 2004/01/07 14:59:37
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -40,6 +40,11 @@ vlc_module_begin();
set_capability
(
"demux"
,
2
);
set_callbacks
(
Demux2Open
,
Demux2Close
);
add_shortcut
(
"demux2"
);
/* Hack */
add_shortcut
(
"nsv"
);
add_shortcut
(
"real"
);
add_shortcut
(
"rm"
);
vlc_module_end
();
/*****************************************************************************
...
...
@@ -62,12 +67,30 @@ static int Demux2Open( vlc_object_t * p_this )
demux2_sys_t
*
p_sys
=
malloc
(
sizeof
(
demux2_sys_t
)
);
demux_t
*
p_demux
;
char
*
psz_uri
;
if
(
input_InitStream
(
p_input
,
0
)
)
{
return
VLC_EGENERIC
;
}
p_demux
=
demux2_New
(
p_input
,
p_input
->
psz_source
,
p_input
->
s
,
p_input
->
p_es_out
);
psz_uri
=
malloc
(
strlen
(
p_input
->
psz_access
)
+
strlen
(
p_input
->
psz_demux
)
+
strlen
(
p_input
->
psz_name
)
+
1
+
3
+
1
);
if
(
p_input
->
psz_demux
&&
*
p_input
->
psz_demux
)
{
sprintf
(
psz_uri
,
"%s/%s://%s"
,
p_input
->
psz_access
,
p_input
->
psz_demux
,
p_input
->
psz_name
);
}
else
if
(
p_input
->
psz_access
&&
*
p_input
->
psz_access
)
{
sprintf
(
psz_uri
,
"%s://%s"
,
p_input
->
psz_access
,
p_input
->
psz_name
);
}
else
{
sprintf
(
psz_uri
,
"%s"
,
p_input
->
psz_name
);
}
p_demux
=
demux2_New
(
p_input
,
psz_uri
,
p_input
->
s
,
p_input
->
p_es_out
);
free
(
psz_uri
);
if
(
!
p_demux
)
{
...
...
modules/demux/nsv.c
View file @
be5afcff
...
...
@@ -2,7 +2,7 @@
* nsv.c: NullSoft Video demuxer.
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: nsv.c,v 1.
2 2004/01/05 03:19:00
fenrir Exp $
* $Id: nsv.c,v 1.
3 2004/01/07 14:59:37
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -107,7 +107,7 @@ static int Open( vlc_object_t *p_this )
es_format_Init
(
&
p_sys
->
fmt_audio
,
AUDIO_ES
,
0
);
p_sys
->
p_audio
=
NULL
;
es_format_Init
(
&
p_sys
->
fmt_
audi
o
,
VIDEO_ES
,
0
);
es_format_Init
(
&
p_sys
->
fmt_
vide
o
,
VIDEO_ES
,
0
);
p_sys
->
p_video
=
NULL
;
p_sys
->
i_pcr
=
1
;
...
...
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