]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/dialogs/vlm/vlm_stream.cpp
Replace vlc_bool_t by bool, VLC_TRUE by true and VLC_FALSE by false.
[vlc] / modules / gui / wxwidgets / dialogs / vlm / vlm_stream.cpp
index 2c5163071fbe4af47d7e8817a0b9fb990f7a79b0..c9d77f2e5d6b117b3b8e824a188bba7142620133 100644 (file)
@@ -2,9 +2,9 @@
  * 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"
 
@@ -41,18 +42,18 @@ VLMStream::~VLMStream()
 
 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 );
@@ -74,7 +75,7 @@ VLMBroadcastStream::~VLMBroadcastStream()
 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 );
@@ -83,7 +84,7 @@ void VLMBroadcastStream::Play()
 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 );
 }
@@ -91,7 +92,7 @@ void VLMBroadcastStream::Stop()
 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 );
 }
@@ -108,3 +109,4 @@ VLMVODStream::VLMVODStream( intf_thread_t *_p_intf, vlm_media_t *_p_media,
 VLMVODStream::~VLMVODStream()
 {
 }
+#endif