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
29ba8cb5
Commit
29ba8cb5
authored
Jan 15, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/misc/sap.c:
* fixed playback of sap anounces through livdotcom
parent
d979a751
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
modules/misc/sap.c
modules/misc/sap.c
+8
-14
No files found.
modules/misc/sap.c
View file @
29ba8cb5
...
...
@@ -2,7 +2,7 @@
* sap.c : SAP interface module
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: sap.c,v 1.4
5 2004/01/05 14:42:14 zorglub
Exp $
* $Id: sap.c,v 1.4
6 2004/01/15 19:21:03 sigmunau
Exp $
*
* Authors: Arnaud Schauly <gitan@via.ecp.fr>
* Clment Stenac <zorglub@via.ecp.fr>
...
...
@@ -655,16 +655,7 @@ static void sess_toitem( intf_thread_t * p_intf, sess_descr_t * p_sd )
psz_uri_default
=
NULL
;
if
(
p_sd
->
i_media
>
1
)
{
psz_uri
=
malloc
(
strlen
(
p_sd
->
psz_sdp
)
+
7
);
if
(
psz_uri
==
NULL
)
{
msg_Warn
(
p_intf
,
"out of memory"
);
return
;
}
memcpy
(
psz_uri
,
"sdp://"
,
6
);
psz_uri
+=
6
;
memcpy
(
psz_uri
,
p_sd
->
psz_sdp
,
strlen
(
p_sd
->
psz_sdp
)
+
1
);
asprintf
(
&
psz_uri
,
"sdp://%s"
,
p_sd
->
psz_sdp
);
/* Check if we have already added the item */
for
(
i
=
0
;
i
<
p_intf
->
p_sys
->
i_announces
;
i
++
)
{
...
...
@@ -679,9 +670,12 @@ static void sess_toitem( intf_thread_t * p_intf, sess_descr_t * p_sd )
FIND_ANYWHERE
);
i_id
=
playlist_Add
(
p_playlist
,
psz_uri
,
p_sd
->
psz_sessionname
,
PLAYLIST_CHECK_INSERT
,
PLAYLIST_END
);
i_pos
=
playlist_GetPositionById
(
p_playlist
,
i_id
);
playlist_SetGroup
(
p_playlist
,
i_pos
,
p_intf
->
p_sys
->
i_group
);
if
(
i_id
!=
-
1
)
{
i_pos
=
playlist_GetPositionById
(
p_playlist
,
i_id
);
playlist_SetGroup
(
p_playlist
,
i_pos
,
p_intf
->
p_sys
->
i_group
);
}
free
(
psz_uri
);
/* Remember it */
p_announce
=
(
struct
sap_announce_t
*
)
malloc
(
...
...
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