Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a0d59512
Commit
a0d59512
authored
Apr 23, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: remove find_name("podcast")
parent
483995a2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
modules/gui/qt4/components/playlist/selector.cpp
modules/gui/qt4/components/playlist/selector.cpp
+2
-11
modules/gui/qt4/dialogs/podcast_configuration.cpp
modules/gui/qt4/dialogs/podcast_configuration.cpp
+1
-7
No files found.
modules/gui/qt4/components/playlist/selector.cpp
View file @
a0d59512
...
...
@@ -595,13 +595,9 @@ void PLSelector::podcastAdd( PLSelItem * )
setSource
(
podcastsParent
);
//to load the SD in case it's not loaded
vlc_object_t
*
p_obj
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_intf
->
p_libvlc
,
"podcast"
);
if
(
!
p_obj
)
return
;
QString
request
(
"ADD:"
);
request
+=
url
.
trimmed
();
var_SetString
(
p_obj
,
"podcast-request"
,
qtu
(
request
)
);
vlc_object_release
(
p_obj
);
var_SetString
(
THEPL
,
"podcast-request"
,
qtu
(
request
)
);
}
void
PLSelector
::
podcastRemove
(
PLSelItem
*
item
)
...
...
@@ -617,15 +613,10 @@ void PLSelector::podcastRemove( PLSelItem* item )
input_item_t
*
input
=
item
->
treeItem
()
->
data
(
0
,
IN_ITEM_ROLE
).
value
<
input_item_t
*>
();
if
(
!
input
)
return
;
vlc_object_t
*
p_obj
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_intf
->
p_libvlc
,
"podcast"
);
if
(
!
p_obj
)
return
;
QString
request
(
"RM:"
);
char
*
psz_uri
=
input_item_GetURI
(
input
);
request
+=
qfu
(
psz_uri
);
var_SetString
(
p_obj
,
"podcast-request"
,
qtu
(
request
)
);
vlc_object_release
(
p_obj
);
var_SetString
(
THEPL
,
"podcast-request"
,
qtu
(
request
)
);
free
(
psz_uri
);
}
...
...
modules/gui/qt4/dialogs/podcast_configuration.cpp
View file @
a0d59512
...
...
@@ -71,16 +71,10 @@ void PodcastConfigDialog::accept()
if
(
i
!=
ui
.
podcastList
->
count
()
-
1
)
urls
+=
"|"
;
}
config_PutPsz
(
p_intf
,
"podcast-urls"
,
qtu
(
urls
)
);
vlc_object_t
*
p_obj
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_intf
->
p_libvlc
,
"podcast"
);
if
(
p_obj
)
{
var_SetString
(
p_obj
,
"podcast-urls"
,
qtu
(
urls
)
);
vlc_object_release
(
p_obj
);
}
if
(
playlist_IsServicesDiscoveryLoaded
(
THEPL
,
"podcast"
)
)
{
var_SetString
(
THEPL
,
"podcast-urls"
,
qtu
(
urls
)
);
msg_Dbg
(
p_intf
,
"You will need to reload the podcast module to take into account deleted podcast urls"
);
}
}
...
...
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