mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 21:52:12 +00:00
vo_caca: Implement VOCTRL_UPDATE_WINDOW_TITLE
This commit is contained in:
parent
00c9a6c237
commit
afe3a5a010
@ -276,8 +276,6 @@ static int preinit(struct vo *vo)
|
|||||||
return ENOSYS;
|
return ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
caca_set_display_title(priv->display, "mpv");
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,10 +286,14 @@ static int query_format(struct vo *vo, int format)
|
|||||||
|
|
||||||
static int control(struct vo *vo, uint32_t request, void *data)
|
static int control(struct vo *vo, uint32_t request, void *data)
|
||||||
{
|
{
|
||||||
|
struct priv *priv = vo->priv;
|
||||||
switch (request) {
|
switch (request) {
|
||||||
case VOCTRL_CHECK_EVENTS:
|
case VOCTRL_CHECK_EVENTS:
|
||||||
check_events(vo);
|
check_events(vo);
|
||||||
return VO_TRUE;
|
return VO_TRUE;
|
||||||
|
case VOCTRL_UPDATE_WINDOW_TITLE:
|
||||||
|
caca_set_display_title(priv->display, (char *)data);
|
||||||
|
return VO_TRUE;
|
||||||
}
|
}
|
||||||
return VO_NOTIMPL;
|
return VO_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user