Revert "libeplayer3: switch off the teletext sub"

This reverts commit 96bd1c5c9f631ceb272dd4afb4667e8a976c8620.
This commit is contained in:
max_10
2018-01-18 11:53:42 +01:00
committed by Thilo Graf
parent 8fe7fd7a3c
commit bfb3de420f

View File

@@ -80,7 +80,7 @@ extern void dvbsub_write(AVSubtitle *, int64_t);
extern void dvbsub_ass_write(AVCodecContext *c, AVSubtitle *sub, int pid);
extern void dvbsub_ass_clear(void);
// from neutrino-mp/lib/lib/libtuxtxt/tuxtxt_common.h
//extern void teletext_write(int pid, uint8_t *data, int size);
extern void teletext_write(int pid, uint8_t *data, int size);
static std::string lastlog_message;
static unsigned int lastlog_repeats;
@@ -253,11 +253,10 @@ bool Input::Play()
}
}
}
} else if (_teletextTrack && (_teletextTrack->stream == stream)) {
if (packet.data && packet.size > 1)
teletext_write(_teletextTrack->pid, packet.data + 1, packet.size - 1);
}
// else if (_teletextTrack && (_teletextTrack->stream == stream)) {
// if (packet.data && packet.size > 1)
// teletext_write(_teletextTrack->pid, packet.data + 1, packet.size - 1);
// }
#if (LIBAVFORMAT_VERSION_MAJOR == 57 && LIBAVFORMAT_VERSION_MINOR == 25)
av_packet_unref(&packet);