This idiom indicates that something seemingly bad may turn out to have been a good thing in the end, a blessing in disguise. The story in the video explains it quite well. And, while the idiom can also have the opposite meaning (a good thing becoming something bad), the former is more frequently used.
Are you sure you want to delete this comment? You will not be able to recover it.