Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
7377b282
Commit
7377b282
authored
Aug 15, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wxwidgets: meta fixes, constify update_download
parent
c4292a15
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
18 deletions
+6
-18
include/vlc_update.h
include/vlc_update.h
+1
-1
modules/gui/wxwidgets/input_manager.cpp
modules/gui/wxwidgets/input_manager.cpp
+1
-5
modules/gui/wxwidgets/playlist_manager.cpp
modules/gui/wxwidgets/playlist_manager.cpp
+3
-11
src/misc/update.c
src/misc/update.c
+1
-1
No files found.
include/vlc_update.h
View file @
7377b282
...
...
@@ -176,7 +176,7 @@ VLC_EXPORT( update_iterator_t *, update_iterator_New, ( update_t * ) );
VLC_EXPORT
(
void
,
update_iterator_Delete
,
(
update_iterator_t
*
)
);
VLC_EXPORT
(
unsigned
int
,
update_iterator_Action
,
(
update_iterator_t
*
,
int
)
);
VLC_EXPORT
(
unsigned
int
,
update_iterator_ChooseMirrorAndFile
,
(
update_iterator_t
*
,
int
,
int
,
int
)
);
VLC_EXPORT
(
void
,
update_download
,
(
update_iterator_t
*
,
char
*
)
);
VLC_EXPORT
(
void
,
update_download
,
(
update_iterator_t
*
,
c
onst
c
har
*
)
);
/**
* @}
...
...
modules/gui/wxwidgets/input_manager.cpp
View file @
7377b282
...
...
@@ -210,10 +210,7 @@ void InputManager::UpdateInput()
void
InputManager
::
UpdateNowPlaying
()
{
const
char
*
psz_now_playing
=
input_item_GetNowPlaying
(
input_GetItem
(
p_input
)
)
?
strdup
(
input_GetItem
(
p_input
)
->
p_meta
->
psz_nowplaying
)
:
strdup
(
""
);
const
char
*
psz_now_playing
=
input_item_GetNowPlaying
(
input_GetItem
(
p_input
)
);
if
(
psz_now_playing
&&
*
psz_now_playing
)
{
p_main_intf
->
statusbar
->
SetStatusText
(
...
...
@@ -225,7 +222,6 @@ void InputManager::UpdateNowPlaying()
p_main_intf
->
statusbar
->
SetStatusText
(
wxU
(
input_GetItem
(
p_input
)
->
psz_name
),
2
);
}
free
(
psz_now_playing
);
}
void
InputManager
::
UpdateButtons
(
vlc_bool_t
b_play
)
...
...
modules/gui/wxwidgets/playlist_manager.cpp
View file @
7377b282
...
...
@@ -299,17 +299,10 @@ void PlaylistManager::UpdateTreeItem( wxTreeItemId item )
wxString
msg
;
wxString
duration
=
wxU
(
""
);
c
har
*
psz_artist
;
if
(
input_item_GetArtist
(
o_item
->
p_input
)
)
c
onst
char
*
psz_artist
=
input_item_GetArtist
(
p_item
->
p_input
)
;
if
(
!
psz_artist
)
{
psz_artist
=
strdup
(
input_item_GetArtist
(
o_item
->
p_input
)
);
}
else
psz_artist
=
strdup
(
""
);
if
(
!
psz_artist
)
{
UnlockPlaylist
(
p_intf
->
p_sys
,
p_playlist
);
return
;
psz_artist
=
""
;
}
char
psz_duration
[
MSTRTIME_MAX_SIZE
];
...
...
@@ -331,7 +324,6 @@ void PlaylistManager::UpdateTreeItem( wxTreeItemId item )
msg
=
wxString
(
wxU
(
psz_artist
))
+
wxT
(
" - "
)
+
wxString
(
wxU
(
p_item
->
p_input
->
psz_name
))
+
duration
;
}
free
(
psz_artist
);
treectrl
->
SetItemText
(
item
,
msg
);
treectrl
->
SetItemImage
(
item
,
p_item
->
p_input
->
i_type
);
...
...
src/misc/update.c
View file @
7377b282
...
...
@@ -1209,7 +1209,7 @@ void update_download_for_real( download_thread_t *p_this );
* \param psz_dest destination file path
* \return nothing
*/
void
update_download
(
update_iterator_t
*
p_uit
,
char
*
psz_dest
)
void
update_download
(
update_iterator_t
*
p_uit
,
c
onst
c
har
*
psz_dest
)
{
download_thread_t
*
p_dt
=
vlc_object_create
(
p_uit
->
p_u
->
p_libvlc
,
sizeof
(
download_thread_t
)
);
...
...
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