change obs_scene_destroy to obs_scene_release, add ability to add scenes, fix name dialog sizing

This commit is contained in:
jp9000
2013-12-29 08:54:06 -07:00
parent e5ef03954e
commit c4af3e2a75
10 changed files with 32 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ using SourceContext = OBSUniqueHandle<obs_source,
DECLARE_DELETER(obs_source_release)>;
using SceneContext = OBSUniqueHandle<obs_scene,
DECLARE_DELETER(obs_scene_destroy)>;
DECLARE_DELETER(obs_scene_release)>;
#undef DECLARE_DELETER

View File

@@ -29,7 +29,7 @@ class SceneContext {
public:
inline SceneContext(obs_scene_t scene) : scene(scene) {}
inline ~SceneContext() {obs_scene_destroy(scene);}
inline ~SceneContext() {obs_scene_release(scene);}
inline operator obs_scene_t() {return scene;}
};