* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
- * Olivier Teuli�e <ipkiss@via.ecp.fr>
+ * Olivier Teulière <ipkiss@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include <set>
+#include <vlc_vout.h>
#include "../vars/equalizer.hpp"
-#include "../vars/playlist.hpp"
#include "../vars/playtree.hpp"
#include "../vars/time.hpp"
#include "../vars/volume.hpp"
#include "../utils/position.hpp"
#include "../utils/var_text.hpp"
#include "../commands/cmd_generic.hpp"
+#include "../controls/ctrl_video.hpp"
class OSTimer;
class VarBool;
struct aout_instance_t;
+struct vout_window_t;
/// Singleton object handling VLC internal state and playlist
/// Delete the instance of VlcProc
static void destroy( intf_thread_t *pIntf );
- /// Getter for the playlist variable
- Playlist &getPlaylistVar() { return *((Playlist*)m_cPlaylist.get()); }
-
/// Getter for the playtree variable
Playtree &getPlaytreeVar() { return *((Playtree*)m_cPlaytree.get()); }
/// Getter for the vout size variable
VarBox &getVoutSizeVar() { return m_varVoutSize; }
- /// Set the vout window handle
- void registerVoutWindow( void *pVoutWindow );
-
- /// Unset the vout window handle
- void unregisterVoutWindow( void *pVoutWindow );
-
/// Indicate whether the embedded video output is currently used
bool isVoutUsed() const { return m_pVout != NULL; }
- /// If an embedded video output is used, drop it (i.e. tell it to stop
- /// using our window handle)
- void dropVout();
-
protected:
// Protected because it is a singleton
VlcProc( intf_thread_t *pIntf );
private:
/// Timer to call manage() regularly (via doManage())
OSTimer *m_pTimer;
- /// Playlist variable
- VariablePtr m_cPlaylist;
- /// Playtree variable FIXME
+ /// Playtree variable
VariablePtr m_cPlaytree;
VariablePtr m_cVarRandom;
VariablePtr m_cVarLoop;
/// Variable for DVD detection
VariablePtr m_cVarDvdActive;
- /// Set of handles of vout windows
- /**
- * When changing the skin, the handles of the 2 skins coexist in the
- * set (but this is temporary, until the old theme is destroyed).
- */
- set<void *> m_handleSet;
/// Vout thread
vout_thread_t *m_pVout;
/// Audio output
void refreshInput();
/// Update the stream name variable
- void updateStreamName( playlist_t *p_playlist );
+ void updateStreamName();
/// Callback for intf-change variable
static int onIntfChange( vlc_object_t *pObj, const char *pVariable,
vlc_value_t oldVal, vlc_value_t newVal,
void *pParam );
- /// Callback to request a vout window
- static void *getWindow( intf_thread_t *pIntf, vout_thread_t *pVout,
- int *pXHint, int *pYHint,
- unsigned int *pWidthHint,
- unsigned int *pHeightHint );
-
- /// Callback to release a vout window
- static void releaseWindow( intf_thread_t *pIntf, void *pWindow );
-
- /// Callback to change a vout window
- static int controlWindow( intf_thread_t *pIntf, void *pWindow,
- int query, va_list args );
-
/// Callback for equalizer-bands variable
static int onEqBandsChange( vlc_object_t *pObj, const char *pVariable,
vlc_value_t oldVal, vlc_value_t newVal,