Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
2215be5f
Commit
2215be5f
authored
Oct 03, 2001
by
Tony Castley
Browse files
Changes to ensure the BeOS compile still works.
parent
55cf7e7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/input.c
View file @
2215be5f
...
...
@@ -4,7 +4,7 @@
* decoders.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input.c,v 1.13
5
2001/10/0
2 17:09:44 sam
Exp $
* $Id: input.c,v 1.13
6
2001/10/0
3 02:19:21 tcastley
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -413,6 +413,7 @@ static int InitThread( input_thread_t * p_input )
p_input
->
pf_seek
=
f
.
pf_seek
;
#undef f
#if !defined( SYS_BEOS ) && !defined( SYS_NTO )
/* FIXME : this is waaaay too kludgy */
if
(
(
strlen
(
p_input
->
p_source
)
>
3
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"ts:"
,
3
)
)
{
...
...
@@ -426,7 +427,9 @@ static int InitThread( input_thread_t * p_input )
HTTPOpen
(
p_input
);
p_input
->
stream
.
i_method
=
INPUT_METHOD_NETWORK
;
}
else
if
(
(
strlen
(
p_input
->
p_source
)
>
4
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvd:"
,
4
)
)
else
#endif
if
(
(
strlen
(
p_input
->
p_source
)
>
4
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvd:"
,
4
)
)
{
/* DVD - this is THE kludge */
p_input
->
p_input_module
->
p_functions
->
input
.
functions
.
input
.
pf_open
(
p_input
);
...
...
@@ -505,6 +508,7 @@ static void EndThread( input_thread_t * p_input )
/* Free demultiplexer's data */
p_input
->
pf_end
(
p_input
);
#if !defined( SYS_BEOS ) && !defined( SYS_NTO )
/* Close stream */
if
(
(
strlen
(
p_input
->
p_source
)
>
3
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"ts:"
,
3
)
)
{
...
...
@@ -514,7 +518,9 @@ static void EndThread( input_thread_t * p_input )
{
NetworkClose
(
p_input
);
}
else
if
(
(
strlen
(
p_input
->
p_source
)
>
4
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvd:"
,
4
)
)
else
#endif
if
(
(
strlen
(
p_input
->
p_source
)
>
4
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvd:"
,
4
)
)
{
p_input
->
p_input_module
->
p_functions
->
input
.
functions
.
input
.
pf_close
(
p_input
);
}
...
...
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