MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Get Support


Get Support Problems with the TV-Server or Client? Post them in here.

Reply
 
Thread Tools Display Modes
Old 2008-07-07, 02:58   #1 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 102
Thanks: 2
Thanked 1 Time in 1 Post


Default Position > Duration problem in tsreader.ax

sometimes the IMediaPosition::get_Duration is a lower number than IMediaPosition::get_CurrentPosition! happens after a channel change that uses the same stream url.
binary64 is offline   Reply With Quote
Old 2008-07-07, 10:01   #2 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,978
Thanks: 76
Thanked 85 Times in 69 Posts


Default

Quote:
Originally Posted by binary64 View Post
sometimes the IMediaPosition::get_Duration is a lower number than IMediaPosition::get_CurrentPosition! happens after a channel change that uses the same stream url.
I think there is a good explanation for that. Duration is the available data in the buffer (i.e. you can seek that amount backwards) and the current position is the position in the stream itself and not in the TS buffer. This is needed for example so that subtitles are possible to be displayed after the TS buffer has been rolled over.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is online now   Reply With Quote
Old 2008-07-07, 12:04   #3 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 102
Thanks: 2
Thanked 1 Time in 1 Post


Default

I did think of that, but it doesn't explain why seconds after changing to another channel it showed the Duration as being 26 seconds. Why not <3 secs? What is the math behind 26 (between 23-26 anyway)?
binary64 is offline   Reply With Quote
Reply

Bookmarks

Tags
andgt, duration, position, tsreaderax

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with playback using tsreader.ax fillerguy General Support 8 2008-02-03 09:46
Black screen after on/off on tv MP 0.2.2.0 (Mac mini -> DVI -> HDMI -> Samsung LCD) FlexyZ MediaPortal 1 Talk 1 2007-01-02 23:00
Record duration raiuga02 Installation, configuration support 0 2006-12-26 19:03
File>change device and configuration>general>allway Lolita The old Bugreport Forum 3 2006-07-10 20:39
Need some Information about MPGMUX.AX & CLDUMP.AX merci1983 OffTopic 4 2005-01-27 16:51


All times are GMT +1. The time now is 09:41.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress