comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Problem where a function is invoked once but called twice (when invocation is within an allocator).
Date: Sat, 07 May 2011 11:06:03 +0200
Date: 2011-05-07T11:06:03+02:00	[thread overview]
Message-ID: <4dc50b7b$0$7665$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <17caa8eb-8113-4199-83b7-9b199887a758@k15g2000pri.googlegroups.com>

On 5/7/11 3:38 AM, Rod Kay wrote:

>     I'm using the GPL10 edition of Gnat on Ubuntu 10.04 (32bit).
>
>     Here's a tarball of the testcase ... http://109.74.196.91:8080/double_next_frame_call.tar.gz
>
>     You may need to install ffmpeg development packages (libavutil-dev,
> libswscale-dev, libavcodec-dev, libavformat-dev on debian/ubuntu).
>
>     Also, it should be built with gprbuild.

First, I can confirm that on Mac OS X the assembly listing
of tester shows three calls, too:

$ grep _media__video__next_frame build/tester.s
	call	_media__video__next_frame
	call	_media__video__next_frame
	call	_media__video__next_frame
$

(I've had to make a few changes to c_media due to recent
changes in ffmpeg, viz. definitions CODEC_TYPE_VIDEO and
others seem to have been replaced with AVMEDIA_TYPE_VIDEO
and others; avcodec_decode_video2 is new for
avcodec_decode_video. Just grabbed patches from ffmpeg
clients from the net, I don't understand them.)

The following appears to be generating two calls only, FWIW:

    the_Movie : media.Video.view := media.Video.new_Video ("xyz.avi");

    Case_1 :        openGL.Image := the_Movie.next_Frame;
    Workaround :    openGL.Image renames The_Movie.Next_Frame;
    Case_2 : access openGL.Image := new opengl.Image' (Workaround);
  
$ grep _media__video__next_frame build/tester.s
	call	_media__video__next_frame
	call	_media__video__next_frame
$




  reply	other threads:[~2011-05-07  9:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-05  3:52 Problem where a function is invoked once but called twice (when invocation is within an allocator) Rod Kay
2011-05-05  5:43 ` J-P. Rosen
2011-05-05  6:12   ` Rod Kay
2011-05-05  8:22   ` Yannick Duchêne (Hibou57)
2011-05-05 10:59     ` Rod Kay
2011-05-05 17:07       ` Florian Weimer
2011-05-06  0:49         ` Rod Kay
2011-05-06 23:41           ` Anh Vo
2011-05-07  1:38             ` Rod Kay
2011-05-07  9:06               ` Georg Bauhaus [this message]
2011-05-07  9:45                 ` Rod Kay
2011-05-09 16:01               ` Anh Vo
2011-05-09 23:00                 ` Dan
2011-05-10  0:14                   ` Anh Vo
2011-05-10  0:24                     ` Rod Kay
2011-05-10  0:55                       ` Anh Vo
2011-05-11 17:23                         ` Dan
2011-05-12 22:35                         ` Rod Kay
2011-05-13 17:40                           ` Ludovic Brenta
2011-05-10  0:21                   ` Rod Kay
  -- strict thread matches above, loose matches on Subject: below --
2011-05-14  0:27 Rod Kay
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox