gsthlsdemux.c: Fixed bug pushing events to the wrong pad.
Fixed potential dead-lock if result returns before wait.
Fixed issue with pad not getting unlinked when download stopped.
Removed some trailing spaces.