comparison mplayer.c @ 21561:600ae729ba6e

show subtitle language in OSD ; patch by Otvos Attila
author nicodvb
date Sun, 10 Dec 2006 17:28:01 +0000
parents ad7616b01560
children e655e64087d3
comparison
equal deleted inserted replaced
21560:a16219e6d656 21561:600ae729ba6e
2238 set_of_sub_pos + 1, 2238 set_of_sub_pos + 1,
2239 strlen(tmp) < 20 ? "" : "...", 2239 strlen(tmp) < 20 ? "" : "...",
2240 strlen(tmp) < 20 ? tmp : tmp+strlen(tmp)-19); 2240 strlen(tmp) < 20 ? tmp : tmp+strlen(tmp)-19);
2241 return M_PROPERTY_OK; 2241 return M_PROPERTY_OK;
2242 } 2242 }
2243
2244 #ifdef USE_DVDNAV
2245 if(stream->type==STREAMTYPE_DVDNAV) {
2246 if(vo_spudec && dvdsub_id >= 0) {
2247 unsigned char lang[3];
2248 if(dvdnav_lang_from_sid(stream, dvdsub_id, lang)) {
2249 snprintf(*(char**)arg, 63, "(%d) %s", dvdsub_id, lang);
2250 return M_PROPERTY_OK;
2251 }
2252 }
2253 }
2254 #endif
2255
2243 if (demuxer->type == DEMUXER_TYPE_MATROSKA && dvdsub_id >= 0) { 2256 if (demuxer->type == DEMUXER_TYPE_MATROSKA && dvdsub_id >= 0) {
2244 char lang[40] = MSGTR_Unknown; 2257 char lang[40] = MSGTR_Unknown;
2245 demux_mkv_get_sub_lang(demuxer, dvdsub_id, lang, 9); 2258 demux_mkv_get_sub_lang(demuxer, dvdsub_id, lang, 9);
2246 snprintf(*(char**)arg, 63, "(%d) %s", dvdsub_id, lang); 2259 snprintf(*(char**)arg, 63, "(%d) %s", dvdsub_id, lang);
2247 return M_PROPERTY_OK; 2260 return M_PROPERTY_OK;