Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
180e9668
Commit
180e9668
authored
Nov 08, 2003
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore streams that are not m=audio or m=video
parent
28521d8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
modules/misc/sap.c
modules/misc/sap.c
+14
-2
No files found.
modules/misc/sap.c
View file @
180e9668
...
...
@@ -2,7 +2,7 @@
* sap.c : SAP interface module
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: sap.c,v 1.3
2 2003/11/08 12:25:59
sigmunau Exp $
* $Id: sap.c,v 1.3
3 2003/11/08 23:02:38
sigmunau Exp $
*
* Authors: Arnaud Schauly <gitan@via.ecp.fr>
* Clment Stenac <zorglub@via.ecp.fr>
...
...
@@ -393,16 +393,28 @@ static void mfield_parse( char *psz_mfield, char **ppsz_proto,
char
**
ppsz_port
)
{
char
*
psz_pos
;
char
*
psz_media
;
if
(
psz_mfield
)
{
psz_pos
=
psz_mfield
;
psz_media
=
psz_mfield
;
while
(
*
psz_pos
!=
'\0'
&&
*
psz_pos
!=
' '
)
{
psz_pos
++
;
}
if
(
*
psz_pos
!=
'\0'
)
{
*
psz_pos
=
'\0'
;
if
(
strcmp
(
psz_media
,
"video"
)
&&
strcmp
(
psz_media
,
"audio"
)
)
{
*
ppsz_proto
=
NULL
;
*
ppsz_port
=
NULL
;
return
;
}
}
psz_pos
++
;
*
ppsz_port
=
psz_pos
;
while
(
*
psz_pos
!=
'\0'
&&
*
psz_pos
&&
*
psz_pos
!=
' '
&&
*
psz_pos
!=
'/'
)
while
(
*
psz_pos
!=
'\0'
&&
*
psz_pos
!=
' '
&&
*
psz_pos
!=
'/'
)
{
psz_pos
++
;
}
...
...
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