Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
cdf5edf7
Commit
cdf5edf7
authored
Oct 27, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/ogg.c: we now set p_input->stream.i_mux_rate.
parent
6d6601ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
modules/demux/ogg.c
modules/demux/ogg.c
+9
-11
No files found.
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/24 09:30:48
gbazin Exp $
* $Id: ogg.c,v 1.
2 2002/10/27 16:59: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