mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
vo_x11: accept zimg formats
This is slightly helpful for testing, and otherwise useless and without consequence. I'm not using the correct output format and using IMGFMT_RGB0 as placeholder. This doesn't matter currently, as both sws and zimg support this as output (and support any input for it). I'm doing this because it's surprisingly tricky to get the correct output format at this point, without digging deeper into x11 shit or refactoring parts of the VO. I don't care enough about this.
This commit is contained in:
parent
a19571679f
commit
cfd6595386
@ -350,7 +350,8 @@ static void draw_image(struct vo *vo, mp_image_t *mpi)
|
|||||||
|
|
||||||
static int query_format(struct vo *vo, int format)
|
static int query_format(struct vo *vo, int format)
|
||||||
{
|
{
|
||||||
if (sws_isSupportedInput(imgfmt2pixfmt(format)))
|
struct priv *p = vo->priv;
|
||||||
|
if (mp_sws_supports_formats(p->sws, IMGFMT_RGB0, format))
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user