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
GSoC
GSoC2018
macOS
vlc
Commits
cdf5edf7
Commit
cdf5edf7
authored
Oct 27, 2002
by
gbazin
Browse files
* modules/demux/ogg.c: we now set p_input->stream.i_mux_rate.
parent
6d6601ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/ogg.c
View file @
cdf5edf7
...
...
@@ -2,7 +2,7 @@
* ogg.c : ogg stream input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: ogg.c,v 1.
1
2002/10/2
4 0
9:30
:48
gbazin Exp $
* $Id: ogg.c,v 1.
2
2002/10/2
7 16:5
9:30 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -422,7 +422,7 @@ static int Activate( vlc_object_t * p_this )
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
msg_Err
(
p_input
,
"cannot init stream"
);
goto
error
;
}
}
if
(
input_AddProgram
(
p_input
,
0
,
0
)
==
NULL
)
{
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
...
...
@@ -430,7 +430,8 @@ static int Activate( vlc_object_t * p_this )
goto
error
;
}
p_input
->
stream
.
p_selected_program
=
p_input
->
stream
.
pp_programs
[
0
];
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
p_input
->
stream
.
i_mux_rate
=
0
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
for
(
i_stream
=
0
;
i_stream
<
p_ogg
->
i_streams
;
i_stream
++
)
{
...
...
@@ -439,6 +440,7 @@ static int Activate( vlc_object_t * p_this )
p_stream
->
p_es
=
input_AddES
(
p_input
,
p_input
->
stream
.
p_selected_program
,
p_ogg
->
i_streams
+
1
,
0
);
p_input
->
stream
.
i_mux_rate
+=
(
p_stream
->
i_bitrate
/
(
8
*
50
));
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
p_stream
->
p_es
->
i_stream_id
=
i_stream
;
p_stream
->
p_es
->
i_fourcc
=
p_stream
->
i_fourcc
;
...
...
@@ -446,10 +448,6 @@ static int Activate( vlc_object_t * p_this )
#undef p_stream
}
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
p_input
->
stream
.
i_mux_rate
=
0
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
for
(
i_stream
=
0
;
i_stream
<
p_ogg
->
i_streams
;
i_stream
++
)
{
#define p_stream p_ogg->pp_stream[i_stream]
...
...
@@ -466,7 +464,7 @@ static int Activate( vlc_object_t * p_this )
break
;
case
(
AUDIO_ES
):
if
(
(
p_ogg
->
p_stream_audio
==
NULL
)
)
if
(
(
p_ogg
->
p_stream_audio
==
NULL
)
)
{
p_ogg
->
p_stream_audio
=
p_stream
;
Ogg_StreamStart
(
p_input
,
p_ogg
,
i_stream
);
...
...
@@ -592,9 +590,9 @@ static int Demux( input_thread_t * p_input )
p_ogg
->
i_pcr
=
p_ogg
->
i_time
*
9
/
100
;
if
(
(
p_input
->
stream
.
p_selected_program
->
i_synchro_state
==
SYNCHRO_REINIT
)
||
(
input_ClockManageControl
(
p_input
,
p_input
->
stream
.
p_selected_program
,
(
mtime_t
)
0
)
==
PAUSE_S
)
)
||
(
input_ClockManageControl
(
p_input
,
p_input
->
stream
.
p_selected_program
,
(
mtime_t
)
0
)
==
PAUSE_S
)
)
{
msg_Warn
(
p_input
,
"synchro reinit"
);
p_input
->
stream
.
p_selected_program
->
i_synchro_state
=
SYNCHRO_OK
;
...
...
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