summaryrefslogtreecommitdiffstats
path: root/video/decode/dec_video.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-23 21:38:39 +0100
committerwm4 <wm4@nowhere>2013-11-23 21:38:39 +0100
commit02f96efc509021d3dccea635044580199ddd0665 (patch)
treec1dad9db3658309e9a9362b981141f31ac1ad9f4 /video/decode/dec_video.h
parent904c73d2d214c729fbeedc13c8b47afab91e296b (diff)
downloadmpv-02f96efc509021d3dccea635044580199ddd0665.tar.bz2
mpv-02f96efc509021d3dccea635044580199ddd0665.tar.xz
dec_video: remove "initialized" field
It's redundant.
Diffstat (limited to 'video/decode/dec_video.h')
-rw-r--r--video/decode/dec_video.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/decode/dec_video.h b/video/decode/dec_video.h
index b706910e5b..c9601efb7b 100644
--- a/video/decode/dec_video.h
+++ b/video/decode/dec_video.h
@@ -19,6 +19,8 @@
#ifndef MPLAYER_DEC_VIDEO_H
#define MPLAYER_DEC_VIDEO_H
+#include <stdbool.h>
+
#include "demux/stheader.h"
#include "video/hwdec.h"
#include "video/mp_image.h"
@@ -34,7 +36,6 @@ struct dec_video {
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
- int initialized;
struct sh_stream *header;
char *decoder_desc;
@@ -60,7 +61,7 @@ struct dec_video {
struct mp_decoder_list *video_decoder_list(void);
-int video_init_best_codec(struct dec_video *d_video, char* video_decoders);
+bool video_init_best_codec(struct dec_video *d_video, char* video_decoders);
void video_uninit(struct dec_video *d_video);
struct demux_packet;