@@ -2129,7 +2129,7 @@ void MCPlayer::updatetraversal()
21292129// End of virtual MCPlayerInterface's functions
21302130// //////////////////////////////////////////////////////////////////////////////
21312131
2132- void MCPlayer::markerchanged (uint32_t p_time)
2132+ void MCPlayer::markerchanged (MCPlatformPlayerDuration p_time)
21332133{
21342134 // Search for the first marker with the given time, and dispatch the message.
21352135 for (uindex_t i = 0 ; i < m_callback_count; i++)
@@ -2247,7 +2247,7 @@ void MCPlayer::SynchronizeUserCallbacks(void)
22472247
22482248 // SN-2014-07-28: [[ Bug 12984 ]] Mimic the strtol behaviour in case of a parsing failure
22492249 if (MCNumberParse (*t_callback_substring, &t_time))
2250- m_callbacks[m_callback_count - 1 ] . time = MCNumberFetchAsInteger (*t_time);
2250+ m_callbacks[m_callback_count - 1 ] . time = MCNumberFetchAsReal (*t_time);
22512251 else
22522252 m_callbacks[m_callback_count - 1 ] . time = 0 ;
22532253
@@ -2291,12 +2291,12 @@ void MCPlayer::SynchronizeUserCallbacks(void)
22912291 return ;
22922292
22932293 // Now set the markers in the player so that we get notified.
2294- array_t <uint32_t > t_markers;
2294+ array_t <MCPlatformPlayerDuration > t_markers;
22952295 /* UNCHECKED */ MCMemoryNewArray (m_callback_count, t_markers . ptr);
22962296 for (uindex_t i = 0 ; i < m_callback_count; i++)
22972297 t_markers . ptr[i] = m_callbacks[i] . time;
22982298 t_markers . count = m_callback_count;
2299- MCPlatformSetPlayerProperty (m_platform_player, kMCPlatformPlayerPropertyMarkers , kMCPlatformPropertyTypeUInt32Array , &t_markers);
2299+ MCPlatformSetPlayerProperty (m_platform_player, kMCPlatformPlayerPropertyMarkers , kMCPlatformPropertyTypePlayerDurationArray , &t_markers);
23002300 MCMemoryDeleteArray (t_markers . ptr);
23012301}
23022302
0 commit comments