* Preamble
*****************************************************************************/
#include <vlc/vlc.h>
-#include <vlc/input.h>
+#include <vlc_access.h>
-#include <stdlib.h>
-#include <string.h>
#include <errno.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
free( psz_name );
return VLC_EGENERIC;
}
-
+
p_sys->p_ev->p_frame = NULL;
p_sys->p_ev->pp_last = &p_sys->p_ev->p_frame;
p_sys->p_ev->p_access = p_access;
if( p_sys->p_ev )
{
/* stop the event handler */
- p_sys->p_ev->b_die = VLC_TRUE;
+ vlc_object_kill( p_sys->p_ev );
if( p_sys->p_raw1394 )
raw1394_stop_iso_rcv( p_sys->p_raw1394, p_sys->i_channel );
case ACCESS_SET_TITLE:
case ACCESS_SET_SEEKPOINT:
case ACCESS_SET_PRIVATE_ID_STATE:
+ case ACCESS_GET_CONTENT_TYPE:
return VLC_EGENERIC;
default:
/* get a raw1394 handle */
if ( !( handle = raw1394_new_handle() ) )
{
- msg_Err( p_access, "raw1394 - failed to get handle: %s.\n", strerror( errno ) );
+ msg_Err( p_access, "raw1394 - failed to get handle: %m." );
return VLC_EGENERIC;
}
if ( ( n_ports = raw1394_get_port_info( handle, pinf, 16 ) ) < 0 )
{
- msg_Err( p_access, "raw1394 - failed to get port info: %s.\n", strerror( errno ) );
+ msg_Err( p_access, "raw1394 - failed to get port info: %m.\n" );
raw1394_destroy_handle( handle );
return VLC_EGENERIC;
}
if ( !handle )
{
- msg_Err( p_access, "raw1394 - failed to get handle: %s.\n", strerror( errno ) );
+ msg_Err( p_access, "raw1394 - failed to get handle: %m." );
return NULL;
}
if ( ( n_ports = raw1394_get_port_info( handle, pinf, 16 ) ) < 0 )
{
- msg_Err( p_access, "raw1394 - failed to get port info: %s.\n", strerror( errno ) );
+ msg_Err( p_access, "raw1394 - failed to get port info: %m." );
raw1394_destroy_handle( handle );
return NULL;
}
/* tell raw1394 which host adapter to use */
if ( raw1394_set_port( handle, port ) < 0 )
{
- msg_Err( p_access, "raw1394 - failed to set set port: %s.\n", strerror( errno ) );
+ msg_Err( p_access, "raw1394 - failed to set set port: %m." );
return NULL;
}