]> git.tdb.fi Git - xinema.git/blobdiff - source/xinestream.h
Use filename as a fallback title if the stream doesn't have one
[xinema.git] / source / xinestream.h
index c4df85ded5383b1dd6af54f7b7116a6adf9a92b3..554b448aac489ff7ab5b899b7cec8181ac63249a 100644 (file)
@@ -36,6 +36,7 @@ public:
 
 private:
        XineEngine &engine;
+       std::string filename;
        xine_stream_t *stream;
        xine_event_queue_t *queue;
        Msp::Mutex mutex;
@@ -57,13 +58,7 @@ public:
        State get_state() const { return state; }
        const Msp::Time::TimeDelta &get_duration() const { return duration; }
        const Msp::Time::TimeDelta &get_position() const { return position; }
-       const std::string &get_title() const { return title; }
-       const std::vector<std::string> &get_audio_channels() const { return audio_channels; }
-       const std::vector<std::string> &get_spu_channels() const { return spu_channels; }
-       void select_audio_channel(int);
-       void select_spu_channel(int);
-       int get_current_audio_channel() const { return current_audio; }
-       int get_current_spu_channel() const { return current_spu; }
+       const std::string &get_title() const;
 
        void play();
        void seek(const Msp::Time::TimeDelta &);
@@ -73,6 +68,13 @@ private:
        void set_state(State);
 
 public:
+       const std::vector<std::string> &get_audio_channels() const { return audio_channels; }
+       const std::vector<std::string> &get_spu_channels() const { return spu_channels; }
+       void select_audio_channel(int);
+       void select_spu_channel(int);
+       int get_current_audio_channel() const { return current_audio; }
+       int get_current_spu_channel() const { return current_spu; }
+
        void tick();
 private:
        void update_info();