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
23584f31
Commit
23584f31
authored
Mar 30, 2005
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input.c: doxygenize vlc_input_item_GetInfo
wx/timer.cpp: show Now Playing in statusbar if available
parent
5dba7eb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
4 deletions
+42
-4
modules/gui/wxwindows/timer.cpp
modules/gui/wxwindows/timer.cpp
+32
-4
src/input/input.c
src/input/input.c
+10
-0
No files found.
modules/gui/wxwindows/timer.cpp
View file @
23584f31
...
...
@@ -33,6 +33,8 @@
#include <vlc/aout.h>
#include <vlc/intf.h>
#include "vlc_meta.h"
#include "wxwindows.h"
#include <wx/timer.h>
...
...
@@ -133,8 +135,21 @@ void Timer::Notify()
b_old_seekable
=
VLC_FALSE
;
b_disc_shown
=
VLC_FALSE
;
p_main_interface
->
statusbar
->
SetStatusText
(
wxU
(
p_intf
->
p_sys
->
p_input
->
input
.
p_item
->
psz_name
),
2
);
char
*
psz_now_playing
=
vlc_input_item_GetInfo
(
p_intf
->
p_sys
->
p_input
->
input
.
p_item
,
_
(
"Meta-information"
),
_
(
"Now Playing"
)
);
if
(
psz_now_playing
&&
*
psz_now_playing
)
{
p_main_interface
->
statusbar
->
SetStatusText
(
wxU
(
psz_now_playing
)
+
wxT
(
" - "
)
+
wxU
(
p_intf
->
p_sys
->
p_input
->
input
.
p_item
->
psz_name
),
2
);
}
else
{
p_main_interface
->
statusbar
->
SetStatusText
(
wxU
(
p_intf
->
p_sys
->
p_input
->
input
.
p_item
->
psz_name
),
2
);
}
free
(
psz_now_playing
);
p_main_interface
->
TogglePlayButton
(
PLAYING_S
);
#ifdef wxHAS_TASK_BAR_ICON
...
...
@@ -190,8 +205,21 @@ void Timer::Notify()
p_intf
->
p_sys
->
b_playing
=
1
;
/* Update the item name */
p_main_interface
->
statusbar
->
SetStatusText
(
wxU
(
p_intf
->
p_sys
->
p_input
->
input
.
p_item
->
psz_name
),
2
);
char
*
psz_now_playing
=
vlc_input_item_GetInfo
(
p_intf
->
p_sys
->
p_input
->
input
.
p_item
,
_
(
"Meta-information"
),
_
(
"Now Playing"
)
);
if
(
psz_now_playing
&&
*
psz_now_playing
)
{
p_main_interface
->
statusbar
->
SetStatusText
(
wxU
(
psz_now_playing
)
+
wxT
(
" - "
)
+
wxU
(
p_intf
->
p_sys
->
p_input
->
input
.
p_item
->
psz_name
),
2
);
}
else
{
p_main_interface
->
statusbar
->
SetStatusText
(
wxU
(
p_intf
->
p_sys
->
p_input
->
input
.
p_item
->
psz_name
),
2
);
}
free
(
psz_now_playing
);
/* Manage the slider */
/* FIXME --fenrir */
...
...
src/input/input.c
View file @
23584f31
...
...
@@ -2518,6 +2518,16 @@ static void MRLSections( input_thread_t *p_input, char *psz_source,
/***********************************************************************
* Info management functions
***********************************************************************/
/**
* Get a info item from a given category in a given input item.
*
* \param p_i The input item to get info from
* \param psz_cat String representing the category for the info
* \param psz_name String representing the name of the desired info
* \return A pointer to the string with the given info if found, or an
* empty string otherwise. The caller should free the returned
* pointer.
*/
char
*
vlc_input_item_GetInfo
(
input_item_t
*
p_i
,
const
char
*
psz_cat
,
const
char
*
psz_name
)
...
...
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