diff options
author | wm4 <wm4@nowhere> | 2013-11-10 00:49:13 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-10 00:49:13 +0100 |
commit | 1a5c863a326f775d94dd995155d1d78448aef6d1 (patch) | |
tree | 5e6eefff5aa747dd5e1868888ba95a9c5d5105c0 /mpvcore/player/mp_core.h | |
parent | 87ab30669c07ec4282cafb0f7ce86015a64b5cc0 (diff) | |
download | mpv-1a5c863a326f775d94dd995155d1d78448aef6d1.tar.bz2 mpv-1a5c863a326f775d94dd995155d1d78448aef6d1.tar.xz |
player: set PulseAudio stream title to window title
Set the PulseAudio stream title, just like the VO window title is set.
Refactor update_vo_window_title() so that we can use it for AOs too.
The ao_pulse.c bit is stolen from MPlayer.
Diffstat (limited to 'mpvcore/player/mp_core.h')
-rw-r--r-- | mpvcore/player/mp_core.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpvcore/player/mp_core.h b/mpvcore/player/mp_core.h index 3f20f9ab2e..4dcb218a80 100644 --- a/mpvcore/player/mp_core.h +++ b/mpvcore/player/mp_core.h @@ -153,6 +153,7 @@ typedef struct MPContext { struct osd_state *osd; struct mp_osd_msg *osd_msg_stack; char *terminal_osd_text; + char *last_window_title; int add_osd_seek_info; // bitfield of enum mp_osd_seek_info double osd_visible; // for the osd bar only @@ -377,7 +378,7 @@ double get_play_end_pts(struct MPContext *mpctx); double get_relative_time(struct MPContext *mpctx); int mp_get_cache_percent(struct MPContext *mpctx); bool mp_get_cache_idle(struct MPContext *mpctx); -void update_vo_window_title(struct MPContext *mpctx); +void update_window_title(struct MPContext *mpctx, bool force); void stream_dump(struct MPContext *mpctx); // osd.c |