Bug 12847 - InvalidCastException on
Summary: InvalidCastException on
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 6.2.x
Hardware: All All
: --- normal
Target Milestone: 6.4 (async)
Assignee: Sebastien Pouliot
: 12862 ()
Depends on:
Reported: 2013-06-24 08:29 UTC by David Ávila Membrives
Modified: 2013-07-16 09:14 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description David Ávila Membrives 2013-06-24 08:29:17 UTC
When I invoke the method AVPlayerItem.addOutput() it throws an internal InvalidCastException, because It's trying to assing a NSArray to a AVPlayerItemOutput instance
Comment 1 David Ávila Membrives 2013-06-24 08:29:55 UTC
This is the method signature:
        public virtual void AddOutput(AVPlayerItemOutput output);
Comment 2 Sebastien Pouliot 2013-06-24 10:38:25 UTC
This is a binding bug.

The [PostGet] on Outputs trigger this. That property should have been bound to return an array of AVPlayerItemOutput (not a single instance).
Comment 4 Sebastien Pouliot 2013-06-24 22:44:40 UTC
Fixed in master 25563faa53a1274fbd6354c7e11985699d059a30
Comment 5 Sebastien Pouliot 2013-06-25 09:04:15 UTC
*** Bug 12862 has been marked as a duplicate of this bug. ***
Comment 6 narayanp 2013-07-16 09:14:34 UTC
I'm trying to verify this bug, but I'm not sure of the steps. Is there a small sample or test case you could provide that demonstrates the issue?