Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
151521b6
Commit
151521b6
authored
Dec 09, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use sout_StreamId* wrappers
parent
184bba76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+11
-10
No files found.
modules/stream_out/transcode.c
View file @
151521b6
...
@@ -810,7 +810,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
...
@@ -810,7 +810,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
}
}
/* Open output stream */
/* Open output stream */
id
->
id
=
p_sys
->
p_out
->
pf_a
dd
(
p_sys
->
p_out
,
&
id
->
p_encoder
->
fmt_out
);
id
->
id
=
sout_StreamIdA
dd
(
p_sys
->
p_out
,
&
id
->
p_encoder
->
fmt_out
);
id
->
b_transcode
=
true
;
id
->
b_transcode
=
true
;
if
(
!
id
->
id
)
if
(
!
id
->
id
)
...
@@ -871,7 +871,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
...
@@ -871,7 +871,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
}
}
/* open output stream */
/* open output stream */
id
->
id
=
p_sys
->
p_out
->
pf_a
dd
(
p_sys
->
p_out
,
&
id
->
p_encoder
->
fmt_out
);
id
->
id
=
sout_StreamIdA
dd
(
p_sys
->
p_out
,
&
id
->
p_encoder
->
fmt_out
);
id
->
b_transcode
=
true
;
id
->
b_transcode
=
true
;
if
(
!
id
->
id
)
if
(
!
id
->
id
)
...
@@ -914,7 +914,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
...
@@ -914,7 +914,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
{
{
msg_Dbg
(
p_stream
,
"not transcoding a stream (fcc=`%4.4s')"
,
msg_Dbg
(
p_stream
,
"not transcoding a stream (fcc=`%4.4s')"
,
(
char
*
)
&
p_fmt
->
i_codec
);
(
char
*
)
&
p_fmt
->
i_codec
);
id
->
id
=
p_sys
->
p_out
->
pf_a
dd
(
p_sys
->
p_out
,
p_fmt
);
id
->
id
=
sout_StreamIdA
dd
(
p_sys
->
p_out
,
p_fmt
);
id
->
b_transcode
=
false
;
id
->
b_transcode
=
false
;
if
(
!
id
->
id
)
goto
error
;
if
(
!
id
->
id
)
goto
error
;
...
@@ -968,7 +968,7 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
...
@@ -968,7 +968,7 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
}
}
}
}
if
(
id
->
id
)
p_sys
->
p_out
->
pf_d
el
(
p_sys
->
p_out
,
id
->
id
);
if
(
id
->
id
)
sout_StreamIdD
el
(
p_sys
->
p_out
,
id
->
id
);
if
(
id
->
p_decoder
)
if
(
id
->
p_decoder
)
{
{
...
@@ -997,7 +997,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
...
@@ -997,7 +997,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
if
(
!
id
->
b_transcode
&&
id
->
id
)
if
(
!
id
->
b_transcode
&&
id
->
id
)
{
{
return
p_sys
->
p_out
->
pf_s
end
(
p_sys
->
p_out
,
id
->
id
,
p_buffer
);
return
sout_StreamIdS
end
(
p_sys
->
p_out
,
id
->
id
,
p_buffer
);
}
}
else
if
(
!
id
->
b_transcode
)
else
if
(
!
id
->
b_transcode
)
{
{
...
@@ -1042,7 +1042,8 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
...
@@ -1042,7 +1042,8 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
break
;
break
;
}
}
if
(
p_out
)
return
p_sys
->
p_out
->
pf_send
(
p_sys
->
p_out
,
id
->
id
,
p_out
);
if
(
p_out
)
return
sout_StreamIdSend
(
p_sys
->
p_out
,
id
->
id
,
p_out
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
@@ -1783,8 +1784,8 @@ static int transcode_video_encoder_open( sout_stream_t *p_stream,
...
@@ -1783,8 +1784,8 @@ static int transcode_video_encoder_open( sout_stream_t *p_stream,
id
->
p_encoder
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
);
id
->
p_encoder
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
);
}
}
id
->
id
=
p_stream
->
p_sys
->
p_out
->
pf_a
dd
(
p_stream
->
p_sys
->
p_out
,
id
->
id
=
sout_StreamIdA
dd
(
p_stream
->
p_sys
->
p_out
,
&
id
->
p_encoder
->
fmt_out
);
&
id
->
p_encoder
->
fmt_out
);
if
(
!
id
->
id
)
if
(
!
id
->
id
)
{
{
msg_Err
(
p_stream
,
"cannot add this stream"
);
msg_Err
(
p_stream
,
"cannot add this stream"
);
...
@@ -2454,7 +2455,7 @@ static int transcode_osd_new( sout_stream_t *p_stream, sout_stream_id_t *id )
...
@@ -2454,7 +2455,7 @@ static int transcode_osd_new( sout_stream_t *p_stream, sout_stream_id_t *id )
}
}
/* open output stream */
/* open output stream */
id
->
id
=
p_sys
->
p_out
->
pf_a
dd
(
p_sys
->
p_out
,
&
id
->
p_encoder
->
fmt_out
);
id
->
id
=
sout_StreamIdA
dd
(
p_sys
->
p_out
,
&
id
->
p_encoder
->
fmt_out
);
id
->
b_transcode
=
true
;
id
->
b_transcode
=
true
;
if
(
!
id
->
id
)
goto
error
;
if
(
!
id
->
id
)
goto
error
;
...
@@ -2463,7 +2464,7 @@ static int transcode_osd_new( sout_stream_t *p_stream, sout_stream_id_t *id )
...
@@ -2463,7 +2464,7 @@ static int transcode_osd_new( sout_stream_t *p_stream, sout_stream_id_t *id )
{
{
msg_Dbg
(
p_stream
,
"not transcoding a stream (fcc=`%4.4s')"
,
msg_Dbg
(
p_stream
,
"not transcoding a stream (fcc=`%4.4s')"
,
(
char
*
)
&
id
->
p_decoder
->
fmt_out
.
i_codec
);
(
char
*
)
&
id
->
p_decoder
->
fmt_out
.
i_codec
);
id
->
id
=
p_sys
->
p_out
->
pf_a
dd
(
p_sys
->
p_out
,
&
id
->
p_decoder
->
fmt_out
);
id
->
id
=
sout_StreamIdA
dd
(
p_sys
->
p_out
,
&
id
->
p_decoder
->
fmt_out
);
id
->
b_transcode
=
false
;
id
->
b_transcode
=
false
;
if
(
!
id
->
id
)
goto
error
;
if
(
!
id
->
id
)
goto
error
;
...
...
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