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
b44d53d8
Commit
b44d53d8
authored
Jan 22, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/misc/sap:
* fixed some minor bugs
parent
de067515
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
modules/misc/sap.c
modules/misc/sap.c
+10
-7
No files found.
modules/misc/sap.c
View file @
b44d53d8
...
...
@@ -2,7 +2,7 @@
* sap.c : SAP interface module
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: sap.c,v 1.4
7 2004/01/21 22:55:34 hartman
Exp $
* $Id: sap.c,v 1.4
8 2004/01/22 00:17:22 sigmunau
Exp $
*
* Authors: Arnaud Schauly <gitan@via.ecp.fr>
* Clment Stenac <zorglub@via.ecp.fr>
...
...
@@ -406,11 +406,11 @@ static void Run( intf_thread_t *p_intf )
if
(
mdate
()
-
p_intf
->
p_sys
->
pp_announces
[
i
]
->
i_last
>
1000000
*
p_sys
->
i_timeout
)
{
msg_Dbg
(
p_intf
,
"Time out for %s, deleting (%i/%i)"
,
p_intf
->
p_sys
->
pp_announces
[
i
]
->
psz_name
,
i
,
p_intf
->
p_sys
->
i_announces
);
msg_Dbg
(
p_intf
,
"Time out for %s, deleting (%i/%i)"
,
p_intf
->
p_sys
->
pp_announces
[
i
]
->
psz_name
,
i
,
p_intf
->
p_sys
->
i_announces
);
/* Remove the playlist item */
/* Remove the playlist item */
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
)
...
...
@@ -662,7 +662,9 @@ static void sess_toitem( intf_thread_t * p_intf, sess_descr_t * p_sd )
if
(
!
strcmp
(
p_intf
->
p_sys
->
pp_announces
[
i
]
->
psz_uri
,
psz_uri
)
)
{
return
;
p_intf
->
p_sys
->
pp_announces
[
i
]
->
i_last
=
mdate
();
free
(
psz_uri
);
return
;
}
}
/* Add it to the playlist */
...
...
@@ -675,7 +677,6 @@ static void sess_toitem( intf_thread_t * p_intf, sess_descr_t * p_sd )
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
(
...
...
@@ -697,6 +698,7 @@ static void sess_toitem( intf_thread_t * p_intf, sess_descr_t * p_sd )
p_announce
->
psz_uri
=
strdup
(
""
);
}
p_announce
->
i_id
=
i_id
;
p_announce
->
i_last
=
mdate
();
INSERT_ELEM
(
p_intf
->
p_sys
->
pp_announces
,
p_intf
->
p_sys
->
i_announces
,
...
...
@@ -704,6 +706,7 @@ static void sess_toitem( intf_thread_t * p_intf, sess_descr_t * p_sd )
p_announce
);
vlc_object_release
(
p_playlist
);
free
(
psz_uri
);
return
;
}
...
...
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