File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -365,6 +365,9 @@ - (void)setPlayer:(AVPlayer *)player
365365
366366 // Finally we can release the player.
367367 [m_player release ];
368+
369+ // Release the video output
370+ [m_player_item_video_output release ];
368371
369372 MCMemoryDeleteArray (m_markers);
370373
@@ -727,7 +730,7 @@ - (void)setPlayer:(AVPlayer *)player
727730
728731 NSDictionary * t_settings = @{ (id )kCVPixelBufferPixelFormatTypeKey : [NSNumber numberWithInt: kCVPixelFormatType_32ARGB ] };
729732 // AVPlayerItemVideoOutput is available in OSX version >= 10.8
730- m_player_item_video_output = [[[ AVPlayerItemVideoOutput alloc ] initWithPixelBufferAttributes: t_settings] autorelease ];;
733+ m_player_item_video_output = [[AVPlayerItemVideoOutput alloc ] initWithPixelBufferAttributes: t_settings];;
731734
732735 // Now set the player of the view.
733736 [m_view setPlayer: m_player];
You can’t perform that action at this time.
0 commit comments