Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6db69bfe
Commit
6db69bfe
authored
Oct 22, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix reference modules to add after their own playlist position instead of the end of the playlist
parent
d6c80f22
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+3
-2
modules/misc/sap.c
modules/misc/sap.c
+7
-4
No files found.
modules/demux/mp4/mp4.c
View file @
6db69bfe
...
...
@@ -343,6 +343,7 @@ static int Open( vlc_object_t * p_this )
MP4_Box_t
*
p_rdrf
=
MP4_BoxGet
(
p_rmra
,
"rmda[%d]/rdrf"
,
i
);
char
*
psz_ref
;
uint32_t
i_ref_type
;
int
i_position
=
p_playlist
->
i_index
;
if
(
!
p_rdrf
||
!
(
psz_ref
=
p_rdrf
->
data
.
p_rdrf
->
psz_ref
)
)
{
...
...
@@ -365,7 +366,7 @@ static int Open( vlc_object_t * p_this )
{
msg_Dbg
(
p_demux
,
"adding ref = `%s'"
,
psz_ref
);
playlist_Add
(
p_playlist
,
psz_ref
,
psz_ref
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
PLAYLIST_APPEND
,
i_position
);
}
else
{
...
...
@@ -388,7 +389,7 @@ static int Open( vlc_object_t * p_this )
strcat
(
psz_absolute
,
psz_ref
);
msg_Dbg
(
p_demux
,
"adding ref = `%s'"
,
psz_absolute
);
playlist_Add
(
p_playlist
,
psz_absolute
,
psz_absolute
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
PLAYLIST_APPEND
,
i_position
);
}
}
else
...
...
modules/misc/sap.c
View file @
6db69bfe
...
...
@@ -445,9 +445,8 @@ static void Run( intf_thread_t *p_intf )
int
i_pos
=
playlist_GetPositionById
(
p_playlist
,
p_intf
->
p_sys
->
pp_announces
[
i
]
->
i_id
);
playlist_Delete
(
p_playlist
,
i_pos
);
}
vlc_object_release
(
p_playlist
);
}
/* Free the p_announce */
p_announce
=
p_intf
->
p_sys
->
pp_announces
[
i
];
...
...
@@ -987,7 +986,7 @@ static sess_descr_t * parse_sdp( vlc_object_t * p_parent, char *p_packet )
char
*
psz_end
;
/* Search begin of field */
while
(
*
p_packet
==
'\n'
||
*
p_packet
==
' '
||
*
p_packet
==
'\t'
)
while
(
*
p_packet
==
'\
r'
||
*
p_packet
==
'\
n'
||
*
p_packet
==
' '
||
*
p_packet
==
'\t'
)
{
p_packet
++
;
}
...
...
@@ -1241,7 +1240,7 @@ static int Demux( demux_t *p_demux )
}
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
b_autodeletion
=
VLC_TRUE
;
i_position
=
p_playlist
->
i_index
+
1
;
i_position
=
p_playlist
->
i_index
;
/* Gather the complete sdp file */
for
(
;;
)
...
...
@@ -1287,6 +1286,7 @@ static int Demux( demux_t *p_demux )
i_id
=
playlist_Add
(
p_playlist
,
psz_uri
,
p_sd
->
psz_sessionname
,
PLAYLIST_CHECK_INSERT
,
i_position
);
free
(
psz_uri
);
vlc_object_release
(
p_playlist
);
return
0
;
}
...
...
@@ -1303,6 +1303,7 @@ static int Demux( demux_t *p_demux )
if
(
!
p_sd
->
pp_media
[
i_count
]
)
{
vlc_object_release
(
p_playlist
);
return
-
1
;
}
...
...
@@ -1311,6 +1312,7 @@ static int Demux( demux_t *p_demux )
if
(
!
psz_proto
||
!
psz_port
)
{
vlc_object_release
(
p_playlist
);
return
-
1
;
}
...
...
@@ -1326,6 +1328,7 @@ static int Demux( demux_t *p_demux )
if
(
psz_uri
==
NULL
)
{
vlc_object_release
(
p_playlist
);
return
-
1
;
}
...
...
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