vlcmediawidget: Set vlcMedia to NULL after release

Authored by mauroc on Oct 28 2018, 9:34 AM.

Description

vlcmediawidget: Set vlcMedia to NULL after release

As we're now calling the code at makePlay() on two different
places, we should ensure that it will only work if vlcMedia
was created.

Without that, if someone tries to play an audio CD and it
fails for whatever reason (like if the system doesn't have
a CD device), it crashes.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

Details

Committed
maurocOct 28 2018, 2:41 PM
Parents
R466:a796b6a2da31: vlcmediawidget: replace int numDevType to bool urlIsAudioCd
Branches
Unknown
Tags
Unknown