fix clicking play twice required on most videos

This commit is contained in:
Jeremy Kauffman 2017-07-30 13:57:21 -04:00
parent cd7e780465
commit f4bdabd5d8

View file

@ -16,7 +16,7 @@ class Video extends React.PureComponent {
componentWillReceiveProps(nextProps) {
// reset playing state upon change path action
if (!this.isMediaSame(nextProps) && this.state.isPlaying) {
if (!this.isMediaSame(nextProps) && this.props.fileInfo && this.state.isPlaying) {
this.state.isPlaying = false;
}
}