Add typecast for C++11 compilation of OS X wxMediaCtrl
When compiling in C++11 mode the typecast of AVPlayerStatus in the callback is required to avoid a compiler error.
(cherry picked from commit ce7bf5e539
)
This commit is contained in:
@@ -581,7 +581,7 @@ private:
|
|||||||
id val = [change objectForKey:NSKeyValueChangeNewKey];
|
id val = [change objectForKey:NSKeyValueChangeNewKey];
|
||||||
if ( val != [NSNull null ] )
|
if ( val != [NSNull null ] )
|
||||||
{
|
{
|
||||||
AVPlayerStatus status = [ val integerValue];
|
AVPlayerStatus status = (AVPlayerStatus) [ val integerValue];
|
||||||
|
|
||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user