libeplayer3/input: amend 1816ee3c42

Origin commit data
------------------
Branch: master
Commit: a3511c9219
Author: martii <m4rtii@gmx.de>
Date: 2014-07-28 (Mon, 28 Jul 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-07-28 18:02:50 +02:00
parent 774ac15bef
commit bd8bc13233

View File

@@ -222,7 +222,7 @@ bool Input::Play()
switch (sub.rects[0]->type) {
case SUBTITLE_TEXT: // FIXME?
case SUBTITLE_ASS:
dvbsub_ass_write(stream->codec, &sub, stream->id);
dvbsub_ass_write(stream->codec, &sub, _subtitleTrack->pid);
break;
case SUBTITLE_BITMAP: {
int64_t pts = calcPts(stream, packet.pts);
@@ -237,7 +237,7 @@ bool Input::Play()
}
} else if (_teletextTrack && (_teletextTrack->stream == stream)) {
if (packet.data && packet.size > 1)
teletext_write(stream->id, packet.data + 1, packet.size - 1);
teletext_write(_teletextTrack->pid, packet.data + 1, packet.size - 1);
}
av_free_packet(&packet);