+
+}
+
+/*****************************************************************************
+ * TSFakeOpen: open the stream and set pf_close
+ *****************************************************************************/
+void TSFakeOpen( input_thread_t * p_input )
+{
+#if !defined( SYS_BEOS ) && !defined( SYS_NTO )
+ char *psz_name = p_input->p_source;
+
+ if( ( strlen(psz_name) > 3 ) && !strncasecmp( psz_name, "ts:", 3 ) )
+ {
+ /* If the user specified "ts:" he wants a network stream */
+ p_input->pf_open = p_input->pf_network_open;
+ p_input->pf_close = p_input->pf_network_close;
+ }
+ else
+#endif
+ {
+ p_input->pf_open = p_input->pf_file_open;
+ p_input->pf_close = p_input->pf_file_close;
+ }
+
+ p_input->pf_open( p_input );