create a sizing callback for the preview panel specifically, apparently on macos the window size isn't guaranteed to be the size it's set to in the main window size handler

This commit is contained in:
jp9000
2013-12-31 07:10:47 -07:00
parent c71eb041b6
commit 1302e65ee6
6 changed files with 18 additions and 5 deletions

View File

@@ -425,7 +425,7 @@ bool obs_enum_output_types(size_t idx, const char **id)
graphics_t obs_graphics(void)
{
return obs->video.graphics;
return (obs != NULL) ? obs->video.graphics : NULL;
}
media_t obs_media(void)