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
1bed861b
Commit
1bed861b
authored
Jan 08, 2002
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DVDRead plugins works again more or less ; major bugs remain but it is usable.
It is selected by default if you have it compiled.
parent
95615617
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
18 deletions
+13
-18
plugins/dvdread/dvdread.c
plugins/dvdread/dvdread.c
+2
-2
plugins/dvdread/input_dvdread.c
plugins/dvdread/input_dvdread.c
+11
-16
No files found.
plugins/dvdread/dvdread.c
View file @
1bed861b
...
...
@@ -2,7 +2,7 @@
* dvdread.c : DvdRead input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: dvdread.c,v 1.
6 2002/01/04 14:01:34 sam
Exp $
* $Id: dvdread.c,v 1.
7 2002/01/08 23:34:06 stef
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -60,7 +60,7 @@ MODULE_INIT_START
ADD_CAPABILITY
(
INPUT
,
70
)
#else
SET_DESCRIPTION
(
"DVDRead input module, linked with libdvdcss"
)
ADD_CAPABILITY
(
INPUT
,
8
0
)
ADD_CAPABILITY
(
INPUT
,
11
0
)
#endif
ADD_SHORTCUT
(
"dvdread"
)
...
...
plugins/dvdread/input_dvdread.c
View file @
1bed861b
...
...
@@ -6,7 +6,7 @@
* It depends on: libdvdread for ifo files and block reading.
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: input_dvdread.c,v 1.1
6 2002/01/04 14:01:34 sam
Exp $
* $Id: input_dvdread.c,v 1.1
7 2002/01/08 23:34:06 stef
Exp $
*
* Author: Stphane Borel <stef@via.ecp.fr>
*
...
...
@@ -147,17 +147,14 @@ static int DvdReadProbe( probedata_t *p_data )
input_thread_t
*
p_input
=
(
input_thread_t
*
)
p_data
;
char
*
psz_name
=
p_input
->
p_source
;
int
i_score
=
5
;
if
(
(
strlen
(
psz_name
)
>
8
)
&&
!
strncasecmp
(
psz_name
,
"dvdread:"
,
8
)
)
if
(((
strlen
(
psz_name
)
>
8
)
&&
!
strncasecmp
(
psz_name
,
"dvdread:"
,
8
))
||
((
strlen
(
psz_name
)
>
4
)
&&
!
strncasecmp
(
psz_name
,
"dvd:"
,
4
)))
{
/* If the user specified "dvdread:" then he probably wants
* to use libdvdread */
i_score
=
100
;
psz_name
+=
8
;
return
1
;
}
return
(
i_score
)
;
return
0
;
}
/*****************************************************************************
...
...
@@ -300,6 +297,11 @@ static void DvdReadOpen( struct input_thread_s *p_input )
{
p_dvdread
=
DVDOpen
(
p_input
->
p_source
+
8
);
}
else
if
(
strlen
(
p_input
->
p_source
)
>
4
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvd:"
,
4
)
)
{
p_dvdread
=
DVDOpen
(
p_input
->
p_source
+
4
);
}
else
{
p_dvdread
=
DVDOpen
(
p_input
->
p_source
);
...
...
@@ -928,13 +930,6 @@ static int DvdReadRead( input_thread_t * p_input,
p_input
->
pf_delete_packet
(
p_input
->
p_method_data
,
p_data_p
);
*
pp_data
=
NULL
;
while
(
p_data_p
!=
NULL
)
{
data_packet_t
*
p_next
=
p_data_p
->
p_next
;
p_input
->
pf_delete_packet
(
p_input
->
p_method_data
,
p_data_p
);
p_data_p
=
p_next
;
}
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
p_input
->
stream
.
p_selected_area
->
i_tell
=
...
...
@@ -970,7 +965,7 @@ static int DvdReadRead( input_thread_t * p_input,
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
return
0
;
return
i_read
;
}
#undef p_pgc
...
...
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