Merge pull request #262 from computerquip/master

No need to subtract window position from translated coordinates
Move timestamp smooth threshold to media-io
Perform timestamp smoothing in media-io as well

Doing timestamp smoothing in obs-source.c is good because timestamps can
typically operate on a different timebase, however, obs-source.c can
also change that time base dynamically (such as with async video and
unexpected timestamp jumps), so in order to ensure that audio is
seamless in the output as well, perform timestamp smoothing in
audio-io.c as well just as an extra precautionary measure.
Add function to get info on a specific source to pulse wrapper
Use source instead of server info to get format for recording in pulse input

When setting up the capture, the plugin will now query pulse for the default
format of the specific source instead of the server.
This is useful if a source has different settings than what the defaults are
for the server, e.g. when the source is an output with 5.1 surround sound
and the microphone input is mono while the server defaults to stereo sound.
Simplify logging in pulse input

Use a macro to prefix debugging messages instead of prepending manually.
Small coding style fixes in pulse input
Add -> operator to CoTaskMemPtr

This adds the ability to get members via the -> operator.
win-dshow: Remove MPEG2 (unlikely to be used)
Log average latency in pulse input

This adds another statistics counter to the pulse plugin in order
to print the average latency reported by pulse when the source is
destroyed.
Add null pointer check for text file

Apparently there was no check for a null pointer file name.
Add more null pointer checks to text source
Update INSTALL for OSX 10.8
Fix crash when closing the properties window on OSX

Followup to d56432304e6e8ae00ea66bef8c1847894e5cac9f, it apparently
still crashed (on slower machines?) when closing the properties window
via mouse (by clicking the X button)
Prevent audio too far from expected timing

Audio that goes below the minimum expecting timing (current time -
buffering time) is automatically removed.  However, delayed audio is not
removed regardless of its delay.  This puts a hard cap of 6 seconds from
current time that the maximum delay audio can have.  This will also
prevent the circular buffer from dynamically growing too large.
Remove audio/video sync reference counter

This is actually unnecessary now that there's a hard limit on the
maximum offset in which audio can be inserted.

This also assumes too much about the audio; it assumes audio is always
on, where as with some devices (such as the elgato) audio is not on
until the stream starts, and when the video has already incremented the
counter.
win-dshow: Swap UYVY and YVYU formats

These values were erroneously using their opposing types for the source
frame format.
Fix path to modules in AppData
Don't require an existing datadir for modules to load
Add api to get module data and binary paths