]> git.sesse.net Git - vlc/blobdiff - src/input/input_ext-intf.c
* added functions in inputs to change the current program (most of
[vlc] / src / input / input_ext-intf.c
index 6f7f8387a575a7804005dd6a53742c146ff22a52..60d3683cafde0a7245d5e347b4c62a5da6e1a95b 100644 (file)
@@ -2,7 +2,7 @@
  * input_ext-intf.c: services to the interface
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: input_ext-intf.c,v 1.29 2001/11/28 15:08:06 massiot Exp $
+ * $Id: input_ext-intf.c,v 1.30 2001/12/07 16:47:47 jobi Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -333,6 +333,21 @@ int input_ChangeArea( input_thread_t * p_input, input_area_t * p_area )
     return 0;
 }
 
+/****************************************************************************
+ * input_ChangeProgram: interface request an area change
+ ****************************************************************************/
+int input_ChangeProgram( input_thread_t * p_input, 
+            pgrm_descriptor_t * p_program )
+{
+    vlc_mutex_lock( &p_input->stream.stream_lock );
+
+    p_input->stream.p_new_program = p_program;
+
+    vlc_mutex_unlock( &p_input->stream.stream_lock );
+
+    return 0;
+}
+
 /****************************************************************************
  * input_ToggleGrayscale: change to grayscale or color output
  ****************************************************************************/