libeplayer3: add support for teletext and dvbsubtitle streams

This commit is contained in:
martii
2012-08-04 13:31:28 +02:00
committed by Stefan Seyfried
parent 8563837c8b
commit d431e60284
14 changed files with 1280 additions and 2 deletions

View File

@@ -24,6 +24,9 @@
#include <stdlib.h>
#include <string.h>
#ifdef MARTII
#include <libavformat/avformat.h>
#endif
#include "manager.h"
#include "common.h"
@@ -214,6 +217,17 @@ static int Command(void *_context, ManagerCmd_t command, void * argument) {
case MANAGER_SET: {
int id = *((int*)argument);
#ifdef MARTII
// What's the argument supposed to be? apid or local index? --martii
if (id >= TrackCount) {
int apid = id;
for (id = 0; id < TrackCount; id++) {
if (((AVStream *) (Tracks[id].stream))->id == apid)
break;
}
}
#endif
audio_mgr_printf(20, "%s::%s MANAGER_SET id=%d\n", FILENAME, __FUNCTION__, id);
if (id < TrackCount)