summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_ts.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/demuxers/demux_ts.c b/src/demuxers/demux_ts.c
index 084782f72..ef71bdfa5 100644
--- a/src/demuxers/demux_ts.c
+++ b/src/demuxers/demux_ts.c
@@ -2356,11 +2356,12 @@ static int demux_ts_get_optional_data(demux_plugin_t *this_gen,
return DEMUX_OPTIONAL_UNSUPPORTED;
sprintf(str, "%3i", channel);
}
+ return DEMUX_OPTIONAL_SUCCESS;
}
else {
strcpy(str, "none");
}
- return DEMUX_OPTIONAL_SUCCESS;
+ return DEMUX_OPTIONAL_UNSUPPORTED;
case DEMUX_OPTIONAL_DATA_SPULANG:
if (channel>=0 && channel<this->spu_langs_count) {
@@ -2372,10 +2373,11 @@ static int demux_ts_get_optional_data(demux_plugin_t *this_gen,
return DEMUX_OPTIONAL_UNSUPPORTED;
sprintf(str, "%3i", channel);
}
+ return DEMUX_OPTIONAL_SUCCESS;
} else {
strcpy(str, "none");
}
- return DEMUX_OPTIONAL_SUCCESS;
+ return DEMUX_OPTIONAL_UNSUPPORTED;
default:
return DEMUX_OPTIONAL_UNSUPPORTED;