mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-19 08:31:23 +08:00
f_decoder_wrapper: disable non-copy hardware decoding for stream groups
This allows playing tile grid images without manually disabling hardware decoding. There is no other type of stream group known to support hardware decoding so far. Co-authored-by: Guido Cella <guido@guidocella.xyz>
This commit is contained in:
@@ -1263,6 +1263,10 @@ static bool init_group_decoder(struct priv *p, struct mp_filter *public_f)
|
||||
return false;
|
||||
}
|
||||
|
||||
mp_require(!public_f->stream_info);
|
||||
struct mp_stream_info *no_hwdec = talloc_zero(public_f, struct mp_stream_info);
|
||||
public_f->stream_info = no_hwdec;
|
||||
|
||||
enum mp_frame_type ftype;
|
||||
switch (p->header->type) {
|
||||
case STREAM_VIDEO: ftype = MP_FRAME_VIDEO; break;
|
||||
|
||||
Reference in New Issue
Block a user