diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-16 05:00:34 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-23 13:41:05 +0300 |
commit | d3d12332d647d2e9281220b84050518bc3f0cb03 (patch) | |
tree | e29595a243a7f2e9911db08605a9d20c4ce29f19 /libmpdemux/stheader.h | |
parent | 732ee3474ac23a16f0ed7e791c0a5f8160a11ebd (diff) | |
download | mpv-d3d12332d647d2e9281220b84050518bc3f0cb03.tar.bz2 mpv-d3d12332d647d2e9281220b84050518bc3f0cb03.tar.xz |
Declare demuxer *_streams fields with proper types
Give sh_audio_t, sh_video_t and sh_sub_t which before had typedef
names only a matching struct name (without _t) too.
Change the a_streams, v_streams and s_streams demuxer fields from
void * to struct sh_audio *, struct sh_video * and struct sh_sub *.
Remove a now unnecessary cast from mplayer.c.
Diffstat (limited to 'libmpdemux/stheader.h')
-rw-r--r-- | libmpdemux/stheader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpdemux/stheader.h b/libmpdemux/stheader.h index 7e761e6879..2ccd7fa4d0 100644 --- a/libmpdemux/stheader.h +++ b/libmpdemux/stheader.h @@ -7,7 +7,7 @@ // Stream headers: -typedef struct { +typedef struct sh_audio { int aid; demux_stream_t *ds; struct codecs_st *codec; @@ -54,7 +54,7 @@ typedef struct { int default_track; } sh_audio_t; -typedef struct { +typedef struct sh_video { int vid; demux_stream_t *ds; struct codecs_st *codec; @@ -94,7 +94,7 @@ typedef struct { void* context; // codec-specific stuff (usually HANDLE or struct pointer) } sh_video_t; -typedef struct { +typedef struct sh_sub { int sid; char type; // t = text, v = VobSub, a = SSA/ASS int has_palette; // If we have a valid palette |