summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.h7
-rw-r--r--stream/stream_bluray.c4
-rw-r--r--stream/stream_dvd.c4
3 files changed, 5 insertions, 10 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 6ce5b7bcac..eeb2f769bd 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -96,13 +96,8 @@
#define STREAM_CTRL_GET_NUM_TITLES 12
#define STREAM_CTRL_GET_LANG 13
-enum stream_ctrl_type {
- stream_ctrl_audio,
- stream_ctrl_sub,
-};
-
struct stream_lang_req {
- enum stream_ctrl_type type;
+ int type; // STREAM_AUDIO, STREAM_SUB
int id;
char *name;
};
diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c
index 7c4f970159..68dea3db4c 100644
--- a/stream/stream_bluray.c
+++ b/stream/stream_bluray.c
@@ -199,11 +199,11 @@ static int bluray_stream_control(stream_t *s, int cmd, void *arg)
BLURAY_STREAM_INFO *si = NULL;
int count = 0;
switch (req->type) {
- case stream_ctrl_audio:
+ case STREAM_AUDIO:
count = ti->clips[0].audio_stream_count;
si = ti->clips[0].audio_streams;
break;
- case stream_ctrl_sub:
+ case STREAM_SUB:
count = ti->clips[0].pg_stream_count;
si = ti->clips[0].pg_streams;
break;
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index e3e1595619..5332311856 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -693,10 +693,10 @@ static int control(stream_t *stream,int cmd,void* arg)
struct stream_lang_req *req = arg;
int lang = 0;
switch(req->type) {
- case stream_ctrl_audio:
+ case STREAM_AUDIO:
lang = dvd_lang_from_aid(stream, req->id);
break;
- case stream_ctrl_sub:
+ case STREAM_SUB:
lang = dvd_lang_from_sid(stream, req->id);
break;
}