testing dvb subtitles

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@128 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 7a554d8f54
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2009-12-30 (Wed, 30 Dec 2009)
This commit is contained in:
[CST] Focus
2009-12-30 14:47:04 +00:00
parent d8cff0de95
commit 4f81bd2eac
2 changed files with 9 additions and 22 deletions

View File

@@ -243,7 +243,7 @@ void* reader_thread(void * /*arg*/)
}
}
if(!dvbsub_paused) {
sub_debug.print(Debug::VERBOSE, "[subtitles] adding packet, len %d\n", count);
sub_debug.print(Debug::VERBOSE, "[subtitles] adding packet, len %d buf 0x%x\n", count, buf);
/* Packet now in memory */
packet_queue.push(buf);
/* TODO: allocation exception */
@@ -324,11 +324,10 @@ void* dvbsub_thread(void* /*arg*/)
#endif
sub_debug.print(Debug::VERBOSE, "PES: Wakeup, queue size %d\n\n", packet_queue.size());
if(dvbsub_paused) {
do {
while(packet_queue.size()) {
packet = packet_queue.pop();
if(packet)
delete[] packet;
} while(packet);
delete[] packet;
}
continue;
}
packet = packet_queue.pop();