Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
8aeaa278
Commit
8aeaa278
authored
Nov 20, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MP4 playlist items as children
parent
f3c51639
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
9 deletions
+43
-9
TODO
TODO
+0
-3
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+43
-6
No files found.
TODO
View file @
8aeaa278
...
@@ -114,7 +114,6 @@ Think playlist within playlist, directory structures, SAP section, TV channels l
...
@@ -114,7 +114,6 @@ Think playlist within playlist, directory structures, SAP section, TV channels l
50% done.<br />
50% done.<br />
Todo:<br />
Todo:<br />
- Core support<br />
- Core support<br />
- *** Fix meta-information (author and duration)<br />
- *** Improve random mode and fix loop<br />
- *** Improve random mode and fix loop<br />
- * "Name finder"<br />
- * "Name finder"<br />
- * "Protocol rollover" node<br />
- * "Protocol rollover" node<br />
...
@@ -123,8 +122,6 @@ Todo:<br />
...
@@ -123,8 +122,6 @@ Todo:<br />
- Helper modules<br />
- Helper modules<br />
- ** ASX and B4S parsers (see below)<br />
- ** ASX and B4S parsers (see below)<br />
- * Rewrite SLP announce discovery<br />
- * Rewrite SLP announce discovery<br />
- ** Adapt CDDAX<br />
- ** Fix MP4, LIVE.COM<br />
- *** Implement in MacOS X and Skins 2 interfaces<br />
- *** Implement in MacOS X and Skins 2 interfaces<br />
- wx implementation :<br />
- wx implementation :<br />
- *** Investigate bug with wxImageList<br />
- *** Investigate bug with wxImageList<br />
...
...
modules/demux/mp4/mp4.c
View file @
8aeaa278
...
@@ -326,8 +326,10 @@ static int Open( vlc_object_t * p_this )
...
@@ -326,8 +326,10 @@ static int Open( vlc_object_t * p_this )
if
(
(
p_rmra
=
MP4_BoxGet
(
p_sys
->
p_root
,
"/moov/rmra"
)
)
)
if
(
(
p_rmra
=
MP4_BoxGet
(
p_sys
->
p_root
,
"/moov/rmra"
)
)
)
{
{
playlist_t
*
p_playlist
;
playlist_t
*
p_playlist
;
playlist_item_t
*
p_item
;
int
i_count
=
MP4_BoxCount
(
p_rmra
,
"rmda"
);
int
i_count
=
MP4_BoxCount
(
p_rmra
,
"rmda"
);
int
i
;
int
i
;
vlc_bool_t
b_play
=
VLC_FALSE
;
msg_Dbg
(
p_demux
,
"detected playlist mov file (%d ref)"
,
i_count
);
msg_Dbg
(
p_demux
,
"detected playlist mov file (%d ref)"
,
i_count
);
...
@@ -337,13 +339,15 @@ static int Open( vlc_object_t * p_this )
...
@@ -337,13 +339,15 @@ static int Open( vlc_object_t * p_this )
FIND_ANYWHERE
);
FIND_ANYWHERE
);
if
(
p_playlist
)
if
(
p_playlist
)
{
{
//p_playlist->pp_items[p_playlist->i_index]->b_autodeletion = VLC_TRUE;
p_item
=
playlist_ItemGetByInput
(
p_playlist
,
((
input_thread_t
*
)
p_demux
->
p_parent
)
->
input
.
p_item
);
playlist_ItemToNode
(
p_playlist
,
p_item
);
for
(
i
=
0
;
i
<
i_count
;
i
++
)
for
(
i
=
0
;
i
<
i_count
;
i
++
)
{
{
MP4_Box_t
*
p_rdrf
=
MP4_BoxGet
(
p_rmra
,
"rmda[%d]/rdrf"
,
i
);
MP4_Box_t
*
p_rdrf
=
MP4_BoxGet
(
p_rmra
,
"rmda[%d]/rdrf"
,
i
);
char
*
psz_ref
;
char
*
psz_ref
;
uint32_t
i_ref_type
;
uint32_t
i_ref_type
;
int
i_position
=
p_playlist
->
i_index
;
if
(
!
p_rdrf
||
!
(
psz_ref
=
p_rdrf
->
data
.
p_rdrf
->
psz_ref
)
)
if
(
!
p_rdrf
||
!
(
psz_ref
=
p_rdrf
->
data
.
p_rdrf
->
psz_ref
)
)
{
{
...
@@ -365,8 +369,21 @@ static int Open( vlc_object_t * p_this )
...
@@ -365,8 +369,21 @@ static int Open( vlc_object_t * p_this )
!
strncmp
(
psz_ref
,
"rtsp://"
,
7
)
)
!
strncmp
(
psz_ref
,
"rtsp://"
,
7
)
)
{
{
msg_Dbg
(
p_demux
,
"adding ref = `%s'"
,
psz_ref
);
msg_Dbg
(
p_demux
,
"adding ref = `%s'"
,
psz_ref
);
playlist_Add
(
p_playlist
,
psz_ref
,
psz_ref
,
if
(
p_item
)
PLAYLIST_APPEND
,
i_position
);
{
playlist_item_t
*
p_child
=
playlist_ItemNew
(
p_playlist
,
psz_ref
,
psz_ref
);
if
(
p_child
)
{
playlist_NodeAddItem
(
p_playlist
,
p_child
,
p_item
->
pp_parents
[
0
]
->
i_view
,
p_item
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
playlist_CopyParents
(
p_item
,
p_child
);
b_play
=
VLC_TRUE
;
}
}
}
}
else
else
{
{
...
@@ -388,8 +405,22 @@ static int Open( vlc_object_t * p_this )
...
@@ -388,8 +405,22 @@ static int Open( vlc_object_t * p_this )
}
}
strcat
(
psz_absolute
,
psz_ref
);
strcat
(
psz_absolute
,
psz_ref
);
msg_Dbg
(
p_demux
,
"adding ref = `%s'"
,
psz_absolute
);
msg_Dbg
(
p_demux
,
"adding ref = `%s'"
,
psz_absolute
);
playlist_Add
(
p_playlist
,
psz_absolute
,
psz_absolute
,
if
(
p_item
)
PLAYLIST_APPEND
,
i_position
);
{
playlist_item_t
*
p_child
=
playlist_ItemNew
(
p_playlist
,
psz_absolute
,
psz_absolute
);
if
(
p_child
)
{
playlist_NodeAddItem
(
p_playlist
,
p_child
,
p_item
->
pp_parents
[
0
]
->
i_view
,
p_item
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
playlist_CopyParents
(
p_item
,
p_child
);
b_play
=
VLC_TRUE
;
}
}
}
}
}
}
else
else
...
@@ -398,6 +429,12 @@ static int Open( vlc_object_t * p_this )
...
@@ -398,6 +429,12 @@ static int Open( vlc_object_t * p_this )
(
char
*
)
&
p_rdrf
->
data
.
p_rdrf
->
i_ref_type
);
(
char
*
)
&
p_rdrf
->
data
.
p_rdrf
->
i_ref_type
);
}
}
}
}
if
(
b_play
==
VLC_TRUE
)
{
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
p_playlist
->
status
.
i_view
,
p_playlist
->
status
.
p_item
,
NULL
);
}
vlc_object_release
(
p_playlist
);
vlc_object_release
(
p_playlist
);
}
}
else
else
...
...
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