dnl
dnl MTP devices services discovery
-PKG_ENABLE_MODULES_VLC([MTP], [], [libmtp >= 0.3.0],[MTP devices support],[auto])
+PKG_ENABLE_MODULES_VLC([MTP], [mtp access_mtp], [libmtp >= 1.0.0], [MTP devices support], [auto])
dnl
dnl Lirc plugin
msg_Dbg( p_sd, "New device found" );
if( AddDevice( p_sd, &p_rawdevices[0] ) == VLC_SUCCESS )
i_status = 1;
+ else
+ i_status = 2;
}
else
{
}
free( p_rawdevices );
vlc_restorecancel(canc);
- msleep( 500000 );
+ if( i_status == 2 )
+ {
+ msleep( 5000000 );
+ i_status = 0;
+ }
+ else
+ msleep( 500000 );
}
return NULL;
}
}
else
{
- msg_Warn( p_sd, "No device found, after all" );
+ msg_Info( p_sd, "The device seems to be mounted, unmount it first" );
return VLC_EGENERIC;
}
}