Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a33d6acc
Commit
a33d6acc
authored
Apr 04, 2002
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* FINALLY fixed HTTP input bug (I'm SO HAPPY with this !)
* Disabled memcpyaltivec since it's buggy
parent
054b90aa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
configure
configure
+1
-1
configure.in
configure.in
+1
-1
plugins/mpeg_system/mpeg_ps.c
plugins/mpeg_system/mpeg_ps.c
+2
-2
src/input/input.c
src/input/input.c
+8
-8
src/input/mpeg_system.c
src/input/mpeg_system.c
+5
-5
No files found.
configure
View file @
a33d6acc
...
@@ -5291,7 +5291,7 @@ THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
...
@@ -5291,7 +5291,7 @@ THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
if
test
x
$SYS
!=
xmingw32
;
then
if
test
x
$SYS
!=
xmingw32
;
then
SSE_MODULES
=
"imdctsse downmixsse"
SSE_MODULES
=
"imdctsse downmixsse"
fi
fi
ALTIVEC_MODULES
=
"idctaltivec motionaltivec
memcpyaltivec
"
ALTIVEC_MODULES
=
"idctaltivec motionaltivec"
echo
$ac_n
"checking if
\$
CC groks MMX inline assembly""...
$ac_c
"
1>&6
echo
$ac_n
"checking if
\$
CC groks MMX inline assembly""...
$ac_c
"
1>&6
echo
"configure:5298: checking if
\$
CC groks MMX inline assembly"
>
&5
echo
"configure:5298: checking if
\$
CC groks MMX inline assembly"
>
&5
...
...
configure.in
View file @
a33d6acc
...
@@ -380,7 +380,7 @@ THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
...
@@ -380,7 +380,7 @@ THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
if test x$SYS != xmingw32; then
if test x$SYS != xmingw32; then
SSE_MODULES="imdctsse downmixsse"
SSE_MODULES="imdctsse downmixsse"
fi
fi
ALTIVEC_MODULES="idctaltivec motionaltivec
memcpyaltivec
"
ALTIVEC_MODULES="idctaltivec motionaltivec"
AC_CACHE_CHECK([if \$CC groks MMX inline assembly],
AC_CACHE_CHECK([if \$CC groks MMX inline assembly],
[ac_cv_mmx_inline],
[ac_cv_mmx_inline],
...
...
plugins/mpeg_system/mpeg_ps.c
View file @
a33d6acc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mpeg_ps.c : Program Stream input module for vlc
* mpeg_ps.c : Program Stream input module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* Copyright (C) 2000-2001 VideoLAN
* $Id: mpeg_ps.c,v 1.
8 2002/03/18 19:14:52 sam
Exp $
* $Id: mpeg_ps.c,v 1.
9 2002/04/04 22:51:01 massiot
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -185,8 +185,8 @@ static int PSInit( input_thread_t * p_input )
...
@@ -185,8 +185,8 @@ static int PSInit( input_thread_t * p_input )
break
;
break
;
}
}
}
}
p_input
->
pf_seek
(
p_input
,
(
off_t
)
0
);
input_AccessReinit
(
p_input
);
input_AccessReinit
(
p_input
);
p_input
->
pf_seek
(
p_input
,
(
off_t
)
0
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
if
(
p_demux_data
->
b_has_PSM
)
if
(
p_demux_data
->
b_has_PSM
)
...
...
src/input/input.c
View file @
a33d6acc
...
@@ -4,10 +4,9 @@
...
@@ -4,10 +4,9 @@
* decoders.
* decoders.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: input.c,v 1.19
1 2002/03/18 21:04:01 xav
Exp $
* $Id: input.c,v 1.19
2 2002/04/04 22:51:01 massiot
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Alexis Guillard <alexis.guillard@bt.com>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
...
@@ -324,6 +323,7 @@ static int RunThread( input_thread_t *p_input )
...
@@ -324,6 +323,7 @@ static int RunThread( input_thread_t *p_input )
{
{
if
(
p_input
->
stream
.
b_seekable
&&
p_input
->
pf_set_area
!=
NULL
)
if
(
p_input
->
stream
.
b_seekable
&&
p_input
->
pf_set_area
!=
NULL
)
{
{
input_AccessReinit
(
p_input
);
p_input
->
pf_set_area
(
p_input
,
p_input
->
stream
.
p_new_area
);
p_input
->
pf_set_area
(
p_input
,
p_input
->
stream
.
p_new_area
);
...
@@ -338,8 +338,6 @@ static int RunThread( input_thread_t *p_input )
...
@@ -338,8 +338,6 @@ static int RunThread( input_thread_t *p_input )
/* Reinitialize synchro. */
/* Reinitialize synchro. */
p_pgrm
->
i_synchro_state
=
SYNCHRO_REINIT
;
p_pgrm
->
i_synchro_state
=
SYNCHRO_REINIT
;
}
}
input_AccessReinit
(
p_input
);
}
}
p_input
->
stream
.
p_new_area
=
NULL
;
p_input
->
stream
.
p_new_area
=
NULL
;
}
}
...
@@ -348,7 +346,12 @@ static int RunThread( input_thread_t *p_input )
...
@@ -348,7 +346,12 @@ static int RunThread( input_thread_t *p_input )
{
{
if
(
p_input
->
stream
.
b_seekable
&&
p_input
->
pf_seek
!=
NULL
)
if
(
p_input
->
stream
.
b_seekable
&&
p_input
->
pf_seek
!=
NULL
)
{
{
off_t
i_new_pos
=
p_input
->
stream
.
p_selected_area
->
i_seek
;
off_t
i_new_pos
;
/* Reinitialize buffer manager. */
input_AccessReinit
(
p_input
);
i_new_pos
=
p_input
->
stream
.
p_selected_area
->
i_seek
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
p_input
->
pf_seek
(
p_input
,
i_new_pos
);
p_input
->
pf_seek
(
p_input
,
i_new_pos
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
...
@@ -364,9 +367,6 @@ static int RunThread( input_thread_t *p_input )
...
@@ -364,9 +367,6 @@ static int RunThread( input_thread_t *p_input )
/* Reinitialize synchro. */
/* Reinitialize synchro. */
p_pgrm
->
i_synchro_state
=
SYNCHRO_REINIT
;
p_pgrm
->
i_synchro_state
=
SYNCHRO_REINIT
;
}
}
/* Reinitialize buffer manager. */
input_AccessReinit
(
p_input
);
}
}
p_input
->
stream
.
p_selected_area
->
i_seek
=
NO_SEEK
;
p_input
->
stream
.
p_selected_area
->
i_seek
=
NO_SEEK
;
}
}
...
...
src/input/mpeg_system.c
View file @
a33d6acc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mpeg_system.c: TS, PS and PES management
* mpeg_system.c: TS, PS and PES management
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: mpeg_system.c,v 1.8
7 2002/03/20 17:44:15 sam
Exp $
* $Id: mpeg_system.c,v 1.8
8 2002/04/04 22:51:01 massiot
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Michel Lespinasse <walken@via.ecp.fr>
* Michel Lespinasse <walken@via.ecp.fr>
...
@@ -662,20 +662,20 @@ ssize_t input_ReadPS( input_thread_t * p_input, data_packet_t ** pp_data )
...
@@ -662,20 +662,20 @@ ssize_t input_ReadPS( input_thread_t * p_input, data_packet_t ** pp_data )
/* Read what we believe to be a packet header. */
/* Read what we believe to be a packet header. */
PEEK
(
4
);
PEEK
(
4
);
if
(
*
p_peek
||
*
(
p_peek
+
1
)
||
*
(
p_peek
+
2
)
!=
1
)
if
(
p_peek
[
0
]
||
p_peek
[
1
]
||
p_peek
[
2
]
!=
1
||
p_peek
[
3
]
<
0xB9
)
{
{
if
(
*
p_peek
||
*
(
p_peek
+
1
)
||
*
(
p_peek
+
2
)
)
if
(
p_peek
[
0
]
||
p_peek
[
1
]
||
p_peek
[
2
]
)
{
{
/* It is common for MPEG-1 streams to pad with zeros
/* It is common for MPEG-1 streams to pad with zeros
* (although it is forbidden by the recommendation), so
* (although it is forbidden by the recommendation), so
* don't bother everybody in this case. */
* don't bother everybody in this case. */
intf_WarnMsg
(
3
,
"input warning: garbage (0x%.2x%.2x%.2x%.2x)"
,
intf_WarnMsg
(
3
,
"input warning: garbage (0x%.2x%.2x%.2x%.2x)"
,
*
p_peek
,
*
(
p_peek
+
1
),
*
(
p_peek
+
2
),
*
(
p_peek
+
3
)
);
p_peek
[
0
],
p_peek
[
1
],
p_peek
[
2
],
p_peek
[
3
]
);
}
}
/* This is not the startcode of a packet. Read the stream
/* This is not the startcode of a packet. Read the stream
* until we find one. */
* until we find one. */
while
(
*
p_peek
||
*
(
p_peek
+
1
)
||
*
(
p_peek
+
2
)
!=
1
)
while
(
p_peek
[
0
]
||
p_peek
[
1
]
||
p_peek
[
2
]
!=
1
||
p_peek
[
3
]
<
0xB9
)
{
{
p_input
->
p_current_data
++
;
p_input
->
p_current_data
++
;
PEEK
(
4
);
PEEK
(
4
);
...
...
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