[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnash-dev
Subject:    [Gnash-dev] Bug hunter..
From:       Andrea_Palmatè <andrea () amigasoft ! net>
Date:       2009-07-01 16:00:22
Message-ID: 4A4B8816.90603 () amigasoft ! net
[Download RAW message or body]

Hello..
in my hunt that damned bug that is killing my life i've found this problem:

in

boost::int32_t
NetStream_as::time()
{
printf("NetStream_as::time: %ld\n",NetStream_as::time());
    return _playHead.getPosition();
}

with usual player2.swf,while on Linux is always 0, on AmigaOS the first 
time is called is 0 while the next is a large number like 150000000 (not 
all zero of course)
and indeed is my problem on the bar that is displayed wrong.
Well, I don't know if this IS the problem but i have two warning on

asobj/flash/media/Sound_as.cpp: In member function 'void 
gnash::Sound_as::start(double, int)':
asobj/flash/media/Sound_as.cpp:484: warning: converting to 
'boost::uint64_t' from 'double'
asobj/flash/media/Sound_as.cpp:517: warning: converting to 'unsigned 
int' from 'double'

and indeed start has the first parameter that is double

line 484 should not be a problem:

            _startTime = secOff * 1000;

but line 517 could be a problem

        unsigned int inPoint = 0;

        if ( secOff > 0 ) {
            inPoint = (secOff*44100); //This is line 517
        }

Why on linux this warning is not signaled by the compiler? there is a 
problem also on sound_handler->startSound that has the 5° parameter as 
unsigned int.

Andrea


_______________________________________________
Gnash-dev mailing list
Gnash-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic