[mythtv] Getting playtime until now and showing it.

Martin Moeller martin at martinm-76.dk
Fri Jun 17 06:22:43 UTC 2005


Hi all.

I am trying to amend the teletext code a bit so it can print 
hours:minutes:seconds in front of the teletext either in the console or to a 
file (in order to make subtitle files when exporting to avi).

Right now, the closest thing I've got is based on this:

    VideoFrame *last = videoOutput->GetLastShownFrame();

I then call this line further down:

printf("%d - %s\n", (int) last, (char*) inpos);

The result:

This is at 0:11:55:
139112608 - Tag godt imod Jarl Friis-Mikkelsen.

Am I forgetting to dereference(?) the call? Is there a smarter way to get the 
playtime from within AddCCText?

BTW: I have made an adjustment that should prevent the strange characters at 
the top from being shown. More on this later.

/Martin.


More information about the mythtv-dev mailing list