ViveSoftware / ViveMediaDecoder

A high performance video decoding Unity plugin for Windows.
http://u3d.as/usf
Other
129 stars 36 forks source link

nativeLoadThumbnail causes unity editor to crash #4

Closed Wesloc closed 7 years ago

Wesloc commented 7 years ago

To reproduce:

  1. load SampleScene
  2. uncheck MediaDecoder on the Quad from the Inspector
  3. add a new script TestThumbnail.cs to the Quad

    public class TestThumb : MonoBehaviour {
    
    // Use this for initialization
    void Start () {
        MediaDecoder.loadVideoThumb(gameObject, "C:\\Users\\video\\swim.mp4", 2);
    }
    
    // Update is called once per frame
    void Update () {
    
    }
    }
  4. nativeLoadThumbnail will crash the unity editor.
Wesloc commented 7 years ago

Could someone from Vive confirm if this is a real issue or I did something wrong? The steps are quite simple.

Thank you.

kyo8568131 commented 7 years ago

Hi Wesloc, Yes, it is native thumbnail loading issue. I've fixed it. Thanks.