diff options
| -rw-r--r-- | xine/BluRay/demux_ts.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xine/BluRay/demux_ts.c b/xine/BluRay/demux_ts.c index 6b18b72d..0010831b 100644 --- a/xine/BluRay/demux_ts.c +++ b/xine/BluRay/demux_ts.c @@ -2388,12 +2388,13 @@ static int demux_ts_get_optional_data(demux_plugin_t *this_gen, { demux_ts_t *this = (demux_ts_t *) this_gen; char *str = data; - int channel = *((int *)data); /* be a bit paranoid */ - if (this == NULL || this->stream == NULL) + if (this == NULL || this->stream == NULL || data == NULL) return DEMUX_OPTIONAL_UNSUPPORTED; + int channel = *((int *)data); + switch (data_type) { case DEMUX_OPTIONAL_DATA_AUDIOLANG: |
