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
bf85a920
Commit
bf85a920
authored
May 25, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix DVB demuxer. Barely tested
parent
2987f40f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
43 deletions
+12
-43
modules/demux/playlist/b4s.c
modules/demux/playlist/b4s.c
+1
-1
modules/demux/playlist/dvb.c
modules/demux/playlist/dvb.c
+8
-40
modules/demux/playlist/m3u.c
modules/demux/playlist/m3u.c
+1
-1
modules/demux/playlist/playlist.h
modules/demux/playlist/playlist.h
+1
-0
modules/demux/playlist/podcast.c
modules/demux/playlist/podcast.c
+1
-1
No files found.
modules/demux/playlist/b4s.c
View file @
bf85a920
...
@@ -105,7 +105,7 @@ void E_(Close_B4S)( vlc_object_t *p_this )
...
@@ -105,7 +105,7 @@ void E_(Close_B4S)( vlc_object_t *p_this )
static
int
Demux
(
demux_t
*
p_demux
)
static
int
Demux
(
demux_t
*
p_demux
)
{
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
int
i_ret
,
i_parent_id
;
int
i_ret
;
xml_t
*
p_xml
;
xml_t
*
p_xml
;
xml_reader_t
*
p_xml_reader
;
xml_reader_t
*
p_xml_reader
;
...
...
modules/demux/playlist/dvb.c
View file @
bf85a920
...
@@ -100,24 +100,8 @@ void E_(Close_DVB)( vlc_object_t *p_this )
...
@@ -100,24 +100,8 @@ void E_(Close_DVB)( vlc_object_t *p_this )
*****************************************************************************/
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
)
static
int
Demux
(
demux_t
*
p_demux
)
{
{
#if 0
playlist_t *p_playlist;
char
*
psz_line
;
char
*
psz_line
;
playlist_item_t *p_current;
INIT_PLAYLIST_STUFF
;
vlc_bool_t b_play;
p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE );
if( !p_playlist )
{
msg_Err( p_demux, "can't find playlist" );
return -1;
}
b_play = E_(FindItem)( p_demux, p_playlist, &p_current );
playlist_ItemToNode( p_playlist, p_current );
p_current->p_input->i_type = ITEM_TYPE_PLAYLIST;
while
(
(
psz_line
=
stream_ReadLine
(
p_demux
->
s
))
)
while
(
(
psz_line
=
stream_ReadLine
(
p_demux
->
s
))
)
{
{
...
@@ -134,20 +118,16 @@ static int Demux( demux_t *p_demux )
...
@@ -134,20 +118,16 @@ static int Demux( demux_t *p_demux )
EnsureUTF8
(
psz_name
);
EnsureUTF8
(
psz_name
);
p_i
tem = playlist_ItemNew( p_playlist, "dvb:", psz_name
);
p_i
nput
=
input_ItemNewExt
(
p_playlist
,
"dvb:"
,
psz_name
,
0
,
NULL
,
-
1
);
for
(
i
=
0
;
i
<
i_options
;
i
++
)
for
(
i
=
0
;
i
<
i_options
;
i
++
)
{
{
EnsureUTF8
(
ppsz_options
[
i
]
);
EnsureUTF8
(
ppsz_options
[
i
]
);
playlist_ItemAddOption( p_item
, ppsz_options[i] );
vlc_input_item_AddOption
(
p_input
,
ppsz_options
[
i
]
);
}
}
playlist_NodeAddItem( p_playlist, p_item,
playlist_AddWhereverNeeded
(
p_playlist
,
p_input
,
p_current
,
p_current->pp_parents[0]->i_view,
p_item_in_category
,
p_current, PLAYLIST_APPEND, PLAYLIST_END );
(
i_parent_id
>
0
)
?
VLC_TRUE
:
VLC_FALSE
,
PLAYLIST_APPEND
);
/* We need to declare the parents of the node as the
* * same of the parent's ones */
playlist_CopyParents( p_current, p_item );
vlc_input_item_CopyOptions( &p_current->input, &p_item->input );
while
(
i_options
--
)
free
(
ppsz_options
[
i_options
]
);
while
(
i_options
--
)
free
(
ppsz_options
[
i_options
]
);
if
(
ppsz_options
)
free
(
ppsz_options
);
if
(
ppsz_options
)
free
(
ppsz_options
);
...
@@ -155,20 +135,8 @@ static int Demux( demux_t *p_demux )
...
@@ -155,20 +135,8 @@ static int Demux( demux_t *p_demux )
free
(
psz_line
);
free
(
psz_line
);
}
}
/* Go back and play the playlist */
HANDLE_PLAY_AND_RELEASE
;
if( b_play && p_playlist->status.p_item &&
p_playlist->status.p_item->i_children > 0 )
{
playlist_Control( p_playlist, PLAYLIST_VIEWPLAY,
p_playlist->status.i_view,
p_playlist->status.p_item,
p_playlist->status.p_item->pp_children[0] );
}
vlc_object_release( p_playlist );
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
#endif
return
0
;
}
}
static
struct
static
struct
...
...
modules/demux/playlist/m3u.c
View file @
bf85a920
...
@@ -113,7 +113,7 @@ static int Demux( demux_t *p_demux )
...
@@ -113,7 +113,7 @@ static int Demux( demux_t *p_demux )
int
i_parsed_duration
=
0
;
int
i_parsed_duration
=
0
;
mtime_t
i_duration
=
-
1
;
mtime_t
i_duration
=
-
1
;
const
char
**
ppsz_options
=
NULL
;
const
char
**
ppsz_options
=
NULL
;
int
i_options
=
0
,
i
,
i_parent_id
;
int
i_options
=
0
,
i
;
vlc_bool_t
b_cleanup
=
VLC_FALSE
;
vlc_bool_t
b_cleanup
=
VLC_FALSE
;
INIT_PLAYLIST_STUFF
;
INIT_PLAYLIST_STUFF
;
...
...
modules/demux/playlist/playlist.h
View file @
bf85a920
...
@@ -54,6 +54,7 @@ int E_(Import_Shoutcast) ( vlc_object_t * );
...
@@ -54,6 +54,7 @@ int E_(Import_Shoutcast) ( vlc_object_t * );
void
E_
(
Close_Shoutcast
)
(
vlc_object_t
*
);
void
E_
(
Close_Shoutcast
)
(
vlc_object_t
*
);
#define INIT_PLAYLIST_STUFF \
#define INIT_PLAYLIST_STUFF \
int i_parent_id; \
vlc_bool_t b_play; \
vlc_bool_t b_play; \
playlist_item_t *p_current, *p_item_in_category = NULL; \
playlist_item_t *p_current, *p_item_in_category = NULL; \
input_item_t *p_input; \
input_item_t *p_input; \
...
...
modules/demux/playlist/podcast.c
View file @
bf85a920
...
@@ -109,7 +109,7 @@ static int Demux( demux_t *p_demux )
...
@@ -109,7 +109,7 @@ static int Demux( demux_t *p_demux )
vlc_bool_t
b_item
=
VLC_FALSE
;
vlc_bool_t
b_item
=
VLC_FALSE
;
vlc_bool_t
b_image
=
VLC_FALSE
;
vlc_bool_t
b_image
=
VLC_FALSE
;
int
i_ret
,
i_parent_id
;
int
i_ret
;
xml_t
*
p_xml
;
xml_t
*
p_xml
;
xml_reader_t
*
p_xml_reader
;
xml_reader_t
*
p_xml_reader
;
...
...
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