Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mediastreamer2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
mediastreamer2
Commits
c3ddff9d
Commit
c3ddff9d
authored
Jul 30, 2013
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix crash in mediastreamer2 when receiving a new payload type number for a SendOnly kind of stream.
It has to be ignored.
parent
27e29820
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
mediastream.c
src/voip/mediastream.c
+12
-4
No files found.
src/voip/mediastream.c
View file @
c3ddff9d
...
...
@@ -66,14 +66,22 @@ static void media_stream_change_decoder(MediaStream *stream, int payload) {
RtpSession
*
session
=
stream
->
session
;
RtpProfile
*
prof
=
rtp_session_get_profile
(
session
);
PayloadType
*
pt
=
rtp_profile_get_payload
(
prof
,
payload
);
if
(
stream
->
decoder
==
NULL
){
ms_message
(
"media_stream_change_decoder(): ignored, no decoder."
);
return
;
}
if
(
pt
!=
NULL
){
MSFilter
*
dec
;
if
((
stream
->
type
==
VideoStreamType
)
&&
(
stream
->
decoder
!=
NULL
)
&&
(
stream
->
decoder
->
desc
->
enc_fmt
!=
NULL
)
if
(
stream
->
type
==
VideoStreamType
){
/* Q: why only video ? this optimization seems relevant for audio too.*/
if
((
stream
->
decoder
!=
NULL
)
&&
(
stream
->
decoder
->
desc
->
enc_fmt
!=
NULL
)
&&
(
strcasecmp
(
pt
->
mime_type
,
stream
->
decoder
->
desc
->
enc_fmt
)
==
0
))
{
/* Same formats behind different numbers, nothing to do. */
return
;
/* Same formats behind different numbers, nothing to do. */
return
;
}
}
dec
=
ms_filter_create_decoder
(
pt
->
mime_type
);
...
...
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