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
8d4f298b
Commit
8d4f298b
authored
Apr 22, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Telepathy: use the core parameter instead of its own
parent
fc56b92a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
modules/misc/notify/telepathy.c
modules/misc/notify/telepathy.c
+4
-16
No files found.
modules/misc/notify/telepathy.c
View file @
8d4f298b
...
...
@@ -33,10 +33,11 @@
#include <vlc_plugin.h>
#include <vlc_interface.h>
#include <vlc_playlist.h>
#include <vlc_strings.h>
#include <vlc_strings.h>
/* str_format_meta */
#include <dbus/dbus.h>
#define FORMAT_DEFAULT "$a - $t"
/*****************************************************************************
* intf_sys_t: description and status of log interface
*****************************************************************************/
...
...
@@ -63,25 +64,13 @@ static int SendToTelepathy( intf_thread_t *, const char * );
/*****************************************************************************
* Module descriptor
*****************************************************************************/
#define FORMAT_DEFAULT "$a - $t"
#define FORMAT_TEXT N_("Title format string")
#define FORMAT_LONGTEXT N_("Format of the string to send to Telepathy." \
"Defaults to \"Artist - Title\" ($a - $t). " \
"You can use the following substitutions: " \
"$a Artist, $b Album, $c Copyright, $d Description, $e Encoder, $g Genre, " \
"$l Language, $n number, $p Now Playing, $r Rating, $s Subtitles language, " \
"$t Title, $u URL, $A Date, $B Bitrate, $C Chapter, $D Duration, $F URI, " \
"$I Video Title, $L Time Remaining, $N Name, $O Audio language, $P Position, " \
"$R Rate, $S Sample rate, $T Time elapsed, $U Publisher, $V Volume")
vlc_module_begin
()
set_category
(
CAT_INTERFACE
)
set_subcategory
(
SUBCAT_INTERFACE_CONTROL
)
set_shortname
(
"Telepathy"
)
set_description
(
N_
(
"Telepathy
\"
Now Playing
\"
(MissionControl)"
)
)
add_string
(
"telepathy-format"
,
FORMAT_DEFAULT
,
FORMAT_TEXT
,
FORMAT_LONGTEXT
,
false
)
add_obsolete_string
(
"telepathy-format"
)
set_capability
(
"interface"
,
0
)
set_callbacks
(
Open
,
Close
)
...
...
@@ -112,10 +101,9 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
p_intf
->
p_sys
->
psz_format
=
var_InheritString
(
p_intf
,
"
telepathy
-format"
);
p_intf
->
p_sys
->
psz_format
=
var_InheritString
(
p_intf
,
"
input-title
-format"
);
if
(
!
p_intf
->
p_sys
->
psz_format
)
{
msg_Dbg
(
p_intf
,
"no format provided"
);
p_intf
->
p_sys
->
psz_format
=
strdup
(
FORMAT_DEFAULT
);
}
msg_Dbg
(
p_intf
,
"using format: %s"
,
p_intf
->
p_sys
->
psz_format
);
...
...
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