This was reproducible on Windows using winpthreads, which apparently
does not gracefully handle calls on uninitialized mutexes.
}
// Update the video properties if the index changed
}
// Update the video properties if the index changed
- if ( index != self->video_index )
+ if ( context && index > -1 && index != self->video_index )
{
// Reset the video properties if the index changed
self->video_index = index;
{
// Reset the video properties if the index changed
self->video_index = index;