*
* 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.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <stdlib.h>
-#include <string.h>
#include <vlc/vlc.h>
-#include <vlc/intf.h>
-#include <vlc/input.h>
+#include <vlc_interface.h>
+#include <vlc_access.h>
+#include <vlc_demux.h>
+#include <vlc_playlist.h>
+
+#include "dummy.h"
/*****************************************************************************
* Access functions.
/* Used for the pause command */
mtime_t expiration;
-
+
/* The command to run */
char* psz_command;
};
p_sys->expiration = mdate() + (mtime_t)i_arg * (mtime_t)1000000;
return VLC_SUCCESS;
}
-
+
msg_Err( p_demux, "unknown command `%s'", psz_name );
free( p_sys );
switch( p_sys->i_command )
{
case COMMAND_QUIT:
- b_eof = p_demux->p_vlc->b_die = VLC_TRUE;
+ b_eof = VLC_TRUE;
+ vlc_object_kill( p_demux->p_libvlc );
break;
case COMMAND_PAUSE:
else
msleep( 10000 );
break;
-
+
case COMMAND_NOP:
default:
b_eof = VLC_TRUE;
- break;
+ break;
}
vlc_object_release( p_playlist );