summaryrefslogtreecommitdiffstats
path: root/video/decode/dec_video.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-23 21:39:07 +0100
committerwm4 <wm4@nowhere>2013-11-23 21:39:07 +0100
commit4c2fb8f3a2dbe4d9411007f169326d646943d216 (patch)
treeb623eeadcbb32ca7c8f7ba64e7d18d39dd9723b3 /video/decode/dec_video.h
parent02f96efc509021d3dccea635044580199ddd0665 (diff)
downloadmpv-4c2fb8f3a2dbe4d9411007f169326d646943d216.tar.bz2
mpv-4c2fb8f3a2dbe4d9411007f169326d646943d216.tar.xz
dec_video: make vf_input and hwdec_info statically allocated
The only reason why these structs were dynamically allocated was to avoid recursive includes in stheader.h, which is (or was) a very central file included by almost all other files. (If a struct is referenced via a pointer type only, it can be forward referenced, and the definition of the struct is not needed.) Now that they're out of stheader.h, this difference doesn't matter anymore, and the code can be simplified. Also sneak in some sanity checks.
Diffstat (limited to 'video/decode/dec_video.h')
-rw-r--r--video/decode/dec_video.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/decode/dec_video.h b/video/decode/dec_video.h
index c9601efb7b..ebb2624037 100644
--- a/video/decode/dec_video.h
+++ b/video/decode/dec_video.h
@@ -34,8 +34,8 @@ struct dec_video {
const struct vd_functions *vd_driver;
int vf_initialized; // -1 failed, 0 not done, 1 done
long vf_reconfig_count; // incremented each mpcodecs_reconfig_vo() call
- struct mp_image_params *vf_input; // video filter input params
- struct mp_hwdec_info *hwdec_info; // video output hwdec handles
+ struct mp_image_params vf_input; // video filter input params
+ struct mp_hwdec_info hwdec_info; // video output hwdec handles
struct sh_stream *header;
char *decoder_desc;