Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d0aa6c95
Commit
d0aa6c95
authored
Jul 31, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
podcast: remove the sys struct because we don't really need it.
parent
1d28c605
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
23 deletions
+11
-23
modules/demux/playlist/podcast.c
modules/demux/playlist/podcast.c
+11
-23
No files found.
modules/demux/playlist/podcast.c
View file @
d0aa6c95
...
...
@@ -34,12 +34,6 @@
#include "playlist.h"
#include <vlc_xml.h>
struct
demux_sys_t
{
xml_t
*
p_xml
;
xml_reader_t
*
p_xml_reader
;
};
/*****************************************************************************
* Local prototypes
*****************************************************************************/
...
...
@@ -57,9 +51,9 @@ int Import_podcast( vlc_object_t *p_this )
if
(
!
demux_IsForced
(
p_demux
,
"podcast"
)
)
return
VLC_EGENERIC
;
STANDARD_DEMUX_INIT_MSG
(
"using podcast reader"
)
;
p_demux
->
p
_sys
->
p_xml
=
NULL
;
p_demux
->
p_sys
->
p_xml_reader
=
NULL
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
p
f_control
=
Control
;
msg_Dbg
(
p_demux
,
"using podcast reader"
)
;
return
VLC_SUCCESS
;
}
...
...
@@ -69,19 +63,12 @@ int Import_podcast( vlc_object_t *p_this )
*****************************************************************************/
void
Close_podcast
(
vlc_object_t
*
p_this
)
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
if
(
p_sys
->
p_xml_reader
)
xml_ReaderDelete
(
p_sys
->
p_xml
,
p_sys
->
p_xml_reader
);
if
(
p_sys
->
p_xml
)
xml_Delete
(
p_sys
->
p_xml
);
free
(
p_sys
);
(
void
)
p_this
;
}
/* "specs" : http://phobos.apple.com/static/iTunesRSS.html */
static
int
Demux
(
demux_t
*
p_demux
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
bool
b_item
=
false
;
bool
b_image
=
false
;
int
i_ret
;
...
...
@@ -105,18 +92,13 @@ static int Demux( demux_t *p_demux )
INIT_PLAYLIST_STUFF
;
p_xml
=
p_sys
->
p_xml
=
xml_Create
(
p_demux
);
p_xml
=
xml_Create
(
p_demux
);
if
(
!
p_xml
)
goto
error
;
/* psz_elname = stream_ReadLine( p_demux->s );
if( psz_elname ) free( psz_elname );
psz_elname = 0;*/
p_xml_reader
=
xml_ReaderCreate
(
p_xml
,
p_demux
->
s
);
if
(
!
p_xml_reader
)
goto
error
;
p_sys
->
p_xml_reader
=
p_xml_reader
;
/* xml */
/* check root node */
...
...
@@ -365,6 +347,8 @@ static int Demux( demux_t *p_demux )
}
free
(
psz_elname
);
xml_ReaderDelete
(
p_xml
,
p_xml_reader
);
xml_Delete
(
p_xml
);
HANDLE_PLAY_AND_RELEASE
;
return
0
;
/* Needed for correct operation of go back */
...
...
@@ -383,6 +367,10 @@ error:
free
(
psz_item_summary
);
free
(
psz_elname
);
if
(
p_xml_reader
)
xml_ReaderDelete
(
p_xml
,
p_xml_reader
);
xml_Delete
(
p_xml
);
HANDLE_PLAY_AND_RELEASE
;
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