summaryrefslogtreecommitdiffstats
path: root/video/decode/vd.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-27 20:54:07 +0100
committerwm4 <wm4@nowhere>2013-11-27 21:14:39 +0100
commitf09b2ff661040828e2b17fad89613f7706b10e7d (patch)
tree5c5b54a30cf6bf0e1ffda152be3e2b91b1f2a0e1 /video/decode/vd.h
parentf2b5267e88ca68dd6933c97aa4f12e5c073b5a48 (diff)
downloadmpv-f09b2ff661040828e2b17fad89613f7706b10e7d.tar.bz2
mpv-f09b2ff661040828e2b17fad89613f7706b10e7d.tar.xz
cosmetics: rename video/audio reset functions
These used the suffix _resync_stream, which is a bit misleading. Nothing gets "resynchronized", they really just reset state. (Some audio decoders actually used to "resync" by reading packets for resuming playback, but that's not the case anymore.) Also move the function in dec_video.c to the top of the file.
Diffstat (limited to 'video/decode/vd.h')
-rw-r--r--video/decode/vd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vd.h b/video/decode/vd.h
index 045914f502..bf3a8e4374 100644
--- a/video/decode/vd.h
+++ b/video/decode/vd.h
@@ -43,7 +43,7 @@ extern const vd_functions_t *const mpcodecs_vd_drivers[];
enum vd_ctrl {
VDCTRL_GET_PARAMS = 1, // retrieve struct mp_image_params
- VDCTRL_RESYNC_STREAM, // reset decode state after seeking
+ VDCTRL_RESET, // reset decode state after seeking
VDCTRL_QUERY_UNSEEN_FRAMES, // current decoder lag
VDCTRL_REINIT_VO, // reinit filter/VO chain
};