Skip to content

Commit 4fd9893

Browse files
christoph-heinrichDudemanguy
authored andcommitted
player/command: reinit video decoder when it's options change
1 parent eb612b2 commit 4fd9893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

video/decode/vd_lavc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const struct m_sub_options vd_lavc_conf = {
111111
{"vd-lavc-skipidct", OPT_DISCARD(skip_idct)},
112112
{"vd-lavc-skipframe", OPT_DISCARD(skip_frame)},
113113
{"vd-lavc-framedrop", OPT_DISCARD(framedrop)},
114-
{"vd-lavc-threads", OPT_INT(threads), M_RANGE(0, DBL_MAX)},
114+
{"vd-lavc-threads", OPT_INT(threads), M_RANGE(0, DBL_MAX), .flags = UPDATE_VD},
115115
{"vd-lavc-bitexact", OPT_BOOL(bitexact)},
116116
{"vd-lavc-assume-old-x264", OPT_BOOL(old_x264)},
117117
{"vd-lavc-check-hw-profile", OPT_BOOL(check_hw_profile)},

0 commit comments

Comments
 (0)