ASSERT: “m_surface” when playing video
-
w? didn't exist any w in this code. but if your mean is v.
v is QGraphicsVideoItem and mp is QMediaPlayer -
What happens if you start playing only after adding v to the scene ?
-
at this time it show me the mention assert error
-
Since Qt 5.4 has been released, can you check if you still encounter this problem ?
-
yes , i don't have any idea to solve it
-
Yes you will test or yes you still have this problem ?
-
both, i tested Qt5.4 and the error exist in Qt 5.4
-
Where's the assert located this time ?
Did you install the latest driver for your graphic card ?
-
i update my graphic card again and the assert error does exist yet :( . what should i do to solve it?
-
@
mp.setVideoOutput(&v);
scene->addItem(&v);
@I'd move that in the constructor, there's no need to do that again each time.