* vlm_stream.cpp : Implementation of the VLMStream class hierarchy
*****************************************************************************
* Copyright (C) 2000-2005 the VideoLAN team
- * $Id: timer.cpp 11981 2005-08-03 15:03:23Z xtophe $
+ * $Id$
*
- * Authors: Clément Stenac <zorglub@videolan.org>
+ * Authors: Clément Stenac <zorglub@videolan.org>
*
* 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
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+#if 0
#include "dialogs/vlm/vlm_stream.hpp"
#include "dialogs/vlm/vlm_wrapper.hpp"
void VLMStream::Enable()
{
- p_media->b_enabled = VLC_TRUE;
+ p_media->b_enabled = true;
}
void VLMStream::Disable()
{
- p_media->b_enabled = VLC_FALSE;
+ p_media->b_enabled = false;
}
void VLMStream::Delete()
{
vlm_message_t *message;
- string command = "del " + string( p_media->psz_name );
+ string command = "del \"" + string( p_media->psz_name ) + "\"";
/* FIXME: Should be moved to vlm_Wrapper */
vlm_ExecuteCommand( p_vlm->GetVLM(), (char*)command.c_str(), & message );
vlm_MessageDelete( message );
void VLMBroadcastStream::Play()
{
vlm_message_t *message;
- string command = "control " + string( p_media->psz_name ) + " play";
+ string command = "control \"" + string( p_media->psz_name ) + "\" play";
/* FIXME: Should be moved to vlm_Wrapper */
vlm_ExecuteCommand( p_vlm->GetVLM(), (char*)command.c_str(), & message );
vlm_MessageDelete( message );
void VLMBroadcastStream::Stop()
{
vlm_message_t *message;
- string command = "control " + string( p_media->psz_name ) + " stop";
+ string command = "control \"" + string( p_media->psz_name ) + "\" stop";
vlm_ExecuteCommand( p_vlm->GetVLM(), (char*)command.c_str(), & message );
vlm_MessageDelete( message );
}
void VLMBroadcastStream::Pause()
{
vlm_message_t *message;
- string command = "control " + string( p_media->psz_name ) + " pause";
+ string command = "control \"" + string( p_media->psz_name ) + "\" pause";
vlm_ExecuteCommand( p_vlm->GetVLM(), (char*)command.c_str(), & message );
vlm_MessageDelete( message );
}
VLMVODStream::~VLMVODStream()
{
}
+#endif