Fix x264 stdint.h message (it's already included)
Make application quit on main window close

This causes the main window to signal the application to exit and delete
its own pointer on close.  This fixes an issue where apparently some
windows that aren't explicitly connected to the main window would be
left open when the main window was closed because by default Qt will
only exit when all windows have been closed.

Because it deletes its own pointer, instead of storing it in a
std::unique_ptr, use a QPointer because it has an internal mechanism for
automatically tracking QObject deletion even if the deletion was not
done on the QPointer itself, where as unique_ptr does not have that
functionality.  In other words, if the pointer is deleted elsewhere for
whatever reason, the QPointer will still set that internal pointer value
to null.

(message and minor modificiations by Jim)
Minor refactor for creation of sub-windows

This refactors the sub-window code a bit so that instead of deleting the
window pointers, it calls QWidget::close() on them to safely trigger a
normal close on them instead (which will also delete them).
Moves setting the DeleteOnClose flag from inside of the Dialog classes
into the OBSBasic class, to make that behaviour more obvious.
Merge pull request #199 from BtbN/qt_exit

Make application quit on main window close
Workaround for audio meter widget getting stuck
Merge pull request #195 from hwdro/master

Workaround for audio meter widget getting stuck.
Set minimum version on mac to 10.8.5
Add dstr_end function to get the last character
Fix dstr_end bug (it's len - 1)

Somewhat of an embarassing fix.  Using 'len' will just return the null
terminator.
Prevent loading image files with null/empty paths
Fix NULL pointer dereference with text lookups
Minor fix to formatting in call_module_load
Add 720x576 (DV-PAL) as another fallback v4l2 framesize
Merge pull request #206 from benklett/v4l2-add-pal

Add 720x576 (DV-PAL) as another fallback v4l2 framesize
Move config values from the commandline to obsconfig.h
Add relative plugin dest obsconfig.h define
Remove lib prefix from plugins
Export plugin destination and relative prefix to obsconfig.h
Add libv4l2 as requirement for the v4l2 plugin.

In order to convert formats not natively supported by obs the
v4l2 userspace library is required. This patch adds a cmake
script to find the library.
Replace all system calls with there counterpart in libv4l2.

By using the wrapper functions supplied by libv4l2 we gain
support for formats not natively supported by obs.
The library intercepts certain system calls to transparently
enable recoding.