]> git.tdb.fi Git - xinema.git/blobdiff - source/xineengine.h
Refactor code to have the engine tick any streams
[xinema.git] / source / xineengine.h
index 2949734714419697813e3f3a62ad0da0f0aa72ef..eb26406379350a575f552430f23a345ab68fe7dc 100644 (file)
@@ -21,6 +21,7 @@ private:
        x11_visual_t visual;
        xine_video_port_t *video_driver;
        Msp::Graphics::Window::Event *pending_expose;
+       std::list<XineStream *> streams;
 
 public:
        XineEngine(Msp::Graphics::Window &, Msp::Mutex * = 0);
@@ -30,6 +31,9 @@ public:
        xine_audio_port_t *get_audio_driver() { return audio_driver; }
        xine_video_port_t *get_video_driver() { return video_driver; }
 
+       void add_stream(XineStream &);
+       void remove_stream(XineStream &);
+
        void tick();
 
 private: