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
28bf7b47
Commit
28bf7b47
authored
Jun 25, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* demux/dvdnav.c, access/dvdnav.c: moved dvdnav.c in the access directory.
parent
51e76e12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
25 deletions
+21
-25
modules/access/Modules.am
modules/access/Modules.am
+1
-0
modules/access/dvdnav.c
modules/access/dvdnav.c
+20
-24
modules/demux/Modules.am
modules/demux/Modules.am
+0
-1
No files found.
modules/access/Modules.am
View file @
28bf7b47
...
...
@@ -4,6 +4,7 @@ SOURCES_access_udp = udp.c
SOURCES_access_tcp = tcp.c
SOURCES_access_http = http.c
SOURCES_access_ftp = ftp.c
SOURCES_dvdnav = dvdnav.c
SOURCES_dvdread = dvdread.c
SOURCES_slp = slp.c
SOURCES_cdda = \
...
...
modules/
demux
/dvdnav.c
→
modules/
access
/dvdnav.c
View file @
28bf7b47
...
...
@@ -34,7 +34,7 @@
#include <dvdnav/dvdnav.h>
#include "ps.h"
#include "
../demux/
ps.h"
/*****************************************************************************
* Module descriptor
...
...
@@ -135,27 +135,32 @@ static int Open( vlc_object_t *p_this )
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
;
dvdnav_t
*
p_dvdnav
;
int
i_title
,
i_chapter
,
i_angle
;
char
*
psz_name
;
if
(
strncmp
(
p_demux
->
psz_access
,
"dvdnav"
,
6
)
)
psz_name
=
ParseCL
(
VLC_OBJECT
(
p_demux
),
p_demux
->
psz_path
,
VLC_TRUE
,
&
i_title
,
&
i_chapter
,
&
i_angle
);
if
(
!
psz_name
)
{
msg_Warn
(
p_demux
,
"dvdnav module discarded"
);
return
VLC_EGENERIC
;
}
psz_name
=
ParseCL
(
VLC_OBJECT
(
p_demux
),
p_demux
->
psz_path
,
VLC_TRUE
,
&
i_title
,
&
i_chapter
,
&
i_angle
);
if
(
!
psz_name
)
/* Open dvdnav */
if
(
dvdnav_open
(
&
p_dvdnav
,
psz_name
)
!=
DVDNAV_STATUS_OK
)
{
msg_Warn
(
p_demux
,
"cannot open dvdnav"
);
free
(
psz_name
);
return
VLC_EGENERIC
;
}
free
(
psz_name
);
/*
f
ill p_demux field */
/*
F
ill p_demux field */
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
memset
(
p_sys
,
0
,
sizeof
(
demux_sys_t
)
);
p_sys
->
dvdnav
=
p_dvdnav
;
p_sys
->
b_simple
=
strcmp
(
p_demux
->
psz_access
,
"dvdnavsimple"
)
?
VLC_FALSE
:
VLC_TRUE
;
...
...
@@ -169,15 +174,6 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_aspect
=
-
1
;
p_sys
->
b_es_out_ok
=
VLC_FALSE
;
/* Open dvdnav */
if
(
dvdnav_open
(
&
p_sys
->
dvdnav
,
psz_name
)
!=
DVDNAV_STATUS_OK
)
{
msg_Warn
(
p_demux
,
"cannot open dvdnav"
);
free
(
psz_name
);
return
VLC_EGENERIC
;
}
free
(
psz_name
);
if
(
1
)
{
// Hack for libdvdnav CVS.
...
...
@@ -208,9 +204,9 @@ static int Open( vlc_object_t *p_this )
msg_Warn
(
p_demux
,
"cannot set PGC positioning flag"
);
}
if
(
dvdnav_menu_language_select
(
p_sys
->
dvdnav
,
"en"
)
!=
DVDNAV_STATUS_OK
||
dvdnav_audio_language_select
(
p_sys
->
dvdnav
,
"en"
)
!=
DVDNAV_STATUS_OK
||
dvdnav_spu_language_select
(
p_sys
->
dvdnav
,
"en"
)
!=
DVDNAV_STATUS_OK
)
if
(
dvdnav_menu_language_select
(
p_sys
->
dvdnav
,
"en"
)
!=
DVDNAV_STATUS_OK
||
dvdnav_audio_language_select
(
p_sys
->
dvdnav
,
"en"
)
!=
DVDNAV_STATUS_OK
||
dvdnav_spu_language_select
(
p_sys
->
dvdnav
,
"en"
)
!=
DVDNAV_STATUS_OK
)
{
msg_Warn
(
p_demux
,
"something failed while setting en language (%s)"
,
dvdnav_err_to_string
(
p_sys
->
dvdnav
)
);
...
...
@@ -442,7 +438,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return
VLC_EGENERIC
;
}
else
if
(
dvdnav_part_play
(
p_sys
->
dvdnav
,
p_demux
->
info
.
i_title
,
i
)
!=
DVDNAV_STATUS_OK
)
i
+
1
)
!=
DVDNAV_STATUS_OK
)
{
msg_Warn
(
p_demux
,
"cannot set title/chapter"
);
return
VLC_EGENERIC
;
...
...
@@ -636,11 +632,11 @@ static int Demux( demux_t *p_demux )
&
i_part
)
==
DVDNAV_STATUS_OK
)
{
if
(
i_title
>=
0
&&
i_title
<
p_sys
->
i_title
&&
i_part
>=
0
&&
i_part
<
p_sys
->
title
[
i_title
]
->
i_seekpoint
&&
p_demux
->
info
.
i_seekpoint
!=
i_part
)
i_part
>=
1
&&
i_part
<=
p_sys
->
title
[
i_title
]
->
i_seekpoint
&&
p_demux
->
info
.
i_seekpoint
!=
i_part
-
1
)
{
p_demux
->
info
.
i_update
|=
INPUT_UPDATE_SEEKPOINT
;
p_demux
->
info
.
i_seekpoint
=
i_part
;
p_demux
->
info
.
i_seekpoint
=
i_part
-
1
;
}
}
break
;
...
...
@@ -819,7 +815,7 @@ static void DemuxTitles( demux_t *p_demux )
/* Find out number of titles/chapters */
dvdnav_get_number_of_titles
(
p_sys
->
dvdnav
,
&
i_titles
);
for
(
i
=
1
;
i
<
i_titles
;
i
++
)
for
(
i
=
1
;
i
<
=
i_titles
;
i
++
)
{
int32_t
i_chapters
=
0
;
int
j
;
...
...
modules/demux/Modules.am
View file @
28bf7b47
...
...
@@ -15,7 +15,6 @@ SOURCES_nsv = nsv.c
SOURCES_real = real.c
SOURCES_ts = ts.c ../mux/mpeg/csa.c
SOURCES_ps = ps.c ps.h
SOURCES_dvdnav = dvdnav.c
SOURCES_mod = mod.c
SOURCES_pva = pva.c
SOURCES_aiff = aiff.c
...
...
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