]> git.sesse.net Git - casparcg/blobdiff - core/video_channel_context.h
2.0.2: ogl_device life-time fixed.
[casparcg] / core / video_channel_context.h
index 97812952f086e662487dbe70ab55c81fbffb37e1..39b27fa8b63f6d79a61789cff2a71221660fc0f8 100644 (file)
@@ -23,14 +23,14 @@ class video_channel_context
 {\r
 \r
 public:\r
-       video_channel_context(int index, ogl_device& ogl, const video_format_desc& format_desc);\r
-\r
-       const int                       index() const;\r
-       video_format_desc       get_format_desc();\r
-       void                            set_format_desc(const video_format_desc& format_desc);\r
-       executor&                       execution();\r
-       ogl_device&                     ogl();\r
-       std::wstring            print() const;\r
+       video_channel_context(int index, const safe_ptr<ogl_device>& ogl, const video_format_desc& format_desc);\r
+\r
+       const int                               index() const;\r
+       video_format_desc               get_format_desc();\r
+       void                                    set_format_desc(const video_format_desc& format_desc);\r
+       executor&                               execution();\r
+       safe_ptr<ogl_device>    ogl();\r
+       std::wstring                    print() const;\r
 private:\r
        struct implementation;\r
        std::shared_ptr<implementation> impl_;\r