diff options
Diffstat (limited to 'indra/media_plugins/libvlc')
| -rw-r--r-- | indra/media_plugins/libvlc/media_plugin_libvlc.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/indra/media_plugins/libvlc/media_plugin_libvlc.cpp b/indra/media_plugins/libvlc/media_plugin_libvlc.cpp index 9b5b51f56a..c1e34b5c8f 100644 --- a/indra/media_plugins/libvlc/media_plugin_libvlc.cpp +++ b/indra/media_plugins/libvlc/media_plugin_libvlc.cpp @@ -572,6 +572,11 @@ void MediaPluginLibVLC::receiveMessage(const char* message_string)  				}  				else if (message_name == "seek")  				{ +					if (mDuration > 0) +					{ +						F64 normalized_offset = message_in.getValueReal("time") / mDuration; +						libvlc_media_player_set_position(mLibVLCMediaPlayer, normalized_offset); +					}  				}  				else if (message_name == "set_loop")  				{ | 
