1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-26 21:29:16 +00:00

Reduce stheader.h includes, move stream types to mp_common.h

This commit is contained in:
wm4 2013-11-23 22:08:42 +01:00
parent 36744a30fb
commit f99aff1b31
12 changed files with 12 additions and 15 deletions

View File

@ -21,18 +21,12 @@
#include <stdbool.h> #include <stdbool.h>
#include "mpvcore/mp_common.h"
#include "audio/chmap.h" #include "audio/chmap.h"
#include "ms_hdr.h" #include "ms_hdr.h"
struct MPOpts; struct MPOpts;
struct demuxer; struct demuxer;
enum stream_type {
STREAM_VIDEO,
STREAM_AUDIO,
STREAM_SUB,
STREAM_TYPE_COUNT,
};
// Stream headers: // Stream headers:
struct sh_stream { struct sh_stream {

View File

@ -52,6 +52,13 @@
#define CONTROL_ERROR -2 #define CONTROL_ERROR -2
#define CONTROL_NA -3 #define CONTROL_NA -3
enum stream_type {
STREAM_VIDEO,
STREAM_AUDIO,
STREAM_SUB,
STREAM_TYPE_COUNT,
};
extern const char *mplayer_version; extern const char *mplayer_version;
extern const char *mplayer_builddate; extern const char *mplayer_builddate;

View File

@ -53,6 +53,7 @@
#include "audio/decode/dec_audio.h" #include "audio/decode/dec_audio.h"
#include "audio/out/ao.h" #include "audio/out/ao.h"
#include "audio/mixer.h" #include "audio/mixer.h"
#include "demux/demux.h"
#include "stream/stream.h" #include "stream/stream.h"
#include "sub/ass_mp.h" #include "sub/ass_mp.h"
#include "sub/sub.h" #include "sub/sub.h"

View File

@ -36,6 +36,7 @@
#include "mpvcore/input/input.h" #include "mpvcore/input/input.h"
#include "audio/out/ao.h" #include "audio/out/ao.h"
#include "demux/demux.h"
#include "stream/stream.h" #include "stream/stream.h"
#include "video/out/vo.h" #include "video/out/vo.h"

View File

@ -21,9 +21,8 @@
#include <stdbool.h> #include <stdbool.h>
#include "compat/compiler.h" #include "mpvcore/mp_common.h"
#include "mpvcore/options.h" #include "mpvcore/options.h"
#include "demux/demux.h"
// definitions used internally by the core player code // definitions used internally by the core player code

View File

@ -35,6 +35,7 @@
#include "osdep/getch2.h" #include "osdep/getch2.h"
#include "osdep/timer.h" #include "osdep/timer.h"
#include "demux/demux.h"
#include "sub/sub.h" #include "sub/sub.h"
#include "mp_core.h" #include "mp_core.h"

View File

@ -43,7 +43,6 @@
#include "mpvcore/path.h" #include "mpvcore/path.h"
#include "osdep/timer.h" #include "osdep/timer.h"
#include "stream.h" #include "stream.h"
#include "demux/demux.h"
#include "mpvcore/m_option.h" #include "mpvcore/m_option.h"
#include "mpvcore/m_config.h" #include "mpvcore/m_config.h"

View File

@ -40,7 +40,6 @@
#include "mpvcore/mp_msg.h" #include "mpvcore/mp_msg.h"
#include "mpvcore/m_option.h" #include "mpvcore/m_option.h"
#include "stream.h" #include "stream.h"
#include "demux/stheader.h"
#define BLURAY_SECTOR_SIZE 6144 #define BLURAY_SECTOR_SIZE 6144

View File

@ -42,7 +42,6 @@
#include "stream_dvd.h" #include "stream_dvd.h"
#include "stream_dvd_common.h" #include "stream_dvd_common.h"
#include "demux/demux.h"
static char* dvd_device_current; static char* dvd_device_current;
int dvd_angle=1; int dvd_angle=1;

View File

@ -40,7 +40,6 @@
#endif #endif
#include "stream.h" #include "stream.h"
#include "demux/demux.h"
#include "mpvcore/m_option.h" #include "mpvcore/m_option.h"
#include "mpvcore/mp_msg.h" #include "mpvcore/mp_msg.h"
#include "stream_radio.h" #include "stream_radio.h"

View File

@ -25,7 +25,6 @@
#include "mpvcore/mp_msg.h" #include "mpvcore/mp_msg.h"
#include "mpvcore/av_common.h" #include "mpvcore/av_common.h"
#include "mpvcore/options.h" #include "mpvcore/options.h"
#include "demux/stheader.h"
#include "video/mp_image.h" #include "video/mp_image.h"
#include "sd.h" #include "sd.h"
#include "dec_sub.h" #include "dec_sub.h"

View File

@ -20,7 +20,6 @@
#include "talloc.h" #include "talloc.h"
#include "mpvcore/options.h" #include "mpvcore/options.h"
#include "demux/stheader.h"
#include "video/mp_image.h" #include "video/mp_image.h"
#include "sd.h" #include "sd.h"
#include "sub.h" #include "sub.h"