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
963dd618
Commit
963dd618
authored
Oct 06, 1999
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* L'autospawn r�agit correctement si on utilise les flags --novideo ou
--noaudio ; --Meuuh
parent
b872ad10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
src/input/input_psi.c
src/input/input_psi.c
+31
-2
No files found.
src/input/input_psi.c
View file @
963dd618
...
@@ -16,6 +16,9 @@
...
@@ -16,6 +16,9 @@
#include <stdlib.h>
/* atoi(), malloc(), free() */
#include <stdlib.h>
/* atoi(), malloc(), free() */
#include <string.h>
#include <string.h>
#include <netinet/in.h>
/* ntohs */
#include <netinet/in.h>
/* ntohs */
#include <sys/soundcard.h>
#include <X11/Xlib.h>
#include <X11/extensions/XShm.h>
#include "common.h"
#include "common.h"
#include "config.h"
#include "config.h"
...
@@ -26,6 +29,15 @@
...
@@ -26,6 +29,15 @@
#include "input.h"
#include "input.h"
#include "input_ctrl.h"
#include "input_ctrl.h"
#include "input_psi.h"
#include "input_psi.h"
#include "input_vlan.h"
#include "audio_output.h"
#include "video.h"
#include "video_output.h"
#include "xconsole.h"
#include "interface.h"
#include "pgm_data.h"
/*
/*
* Precalculated 32-bits CRC table, shared by all instances of the PSI decoder
* Precalculated 32-bits CRC table, shared by all instances of the PSI decoder
...
@@ -33,6 +45,14 @@
...
@@ -33,6 +45,14 @@
boolean_t
b_crc_initialised
=
0
;
boolean_t
b_crc_initialised
=
0
;
u32
i_crc_32_table
[
256
];
u32
i_crc_32_table
[
256
];
/*
* Global configuration variable, need by AUTO_SPAWN to determine
* the option (audio and video) passed to the VideoLAN client.
*/
#ifdef AUTO_SPAWN
extern
program_data_t
*
p_program_data
;
#endif
/*
/*
* Locale type definitions
* Locale type definitions
*/
*/
...
@@ -597,10 +617,19 @@ static void DecodePgrmMapSection( u8* p_pms, input_thread_t* p_input )
...
@@ -597,10 +617,19 @@ static void DecodePgrmMapSection( u8* p_pms, input_thread_t* p_input )
{
{
case
MPEG1_VIDEO_ES
:
case
MPEG1_VIDEO_ES
:
case
MPEG2_VIDEO_ES
:
case
MPEG2_VIDEO_ES
:
if
(
p_program_data
->
cfg
.
b_video
)
{
/* Spawn a video thread */
input_AddPgrmElem
(
p_input
,
p_input
->
p_es
[
i_es_loop
].
i_id
);
}
break
;
case
MPEG1_AUDIO_ES
:
case
MPEG1_AUDIO_ES
:
case
MPEG2_AUDIO_ES
:
case
MPEG2_AUDIO_ES
:
/* Spawn an audio thread */
if
(
p_program_data
->
cfg
.
b_audio
)
input_AddPgrmElem
(
p_input
,
p_input
->
p_es
[
i_es_loop
].
i_id
);
{
/* Spawn an audio thread */
input_AddPgrmElem
(
p_input
,
p_input
->
p_es
[
i_es_loop
].
i_id
);
}
break
;
break
;
default:
default:
}
}
...
...
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